Fix timeout callback leaks

Make sure that we don't leak oneshot timeout handlers in main.js and
polkitAuthenticationAgent.js by making the callback return false.

https://bugzilla.gnome.org/show_bug.cgi?id=668087
This commit is contained in:
Adel Gadllah 2012-01-17 12:17:34 +01:00
parent e58c82fc04
commit 3f328463a8
2 changed files with 2 additions and 0 deletions

View File

@ -332,6 +332,7 @@ function _windowRemoved(workspace, window) {
workspace._lastRemovedWindow = null;
_queueCheckWorkspaces();
}
return false;
});
}

View File

@ -393,6 +393,7 @@ const AuthenticationAgent = new Lang.Class({
Lang.bind(this,
function() {
this._reallyCompleteRequest(wasDismissed);
return false;
}));
} else {
this._reallyCompleteRequest(wasDismissed);