Skip to content

Commit

Permalink
Add GM_apiLeakCheck() calls to _deleteValue and _listValues.
Browse files Browse the repository at this point in the history
  • Loading branch information
arantius committed Aug 12, 2009
1 parent 6716967 commit f590c6b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions content/miscapis.js
Expand Up @@ -65,10 +65,18 @@ GM_ScriptLogger.prototype.log = function(message) {
};

GM_ScriptStorage.prototype.deleteValue = function(name) {
if (!GM_apiLeakCheck("GM_setValue")) {
return;
}

return this.prefMan.remove(name);
}

GM_ScriptStorage.prototype.listValues = function() {
if (!GM_apiLeakCheck("GM_setValue")) {
return;
}

return this.prefMan.listValues();
}

Expand Down

0 comments on commit f590c6b

Please sign in to comment.