[gnome-shell] Fix timeout callback leaks
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Fix timeout callback leaks
- Date: Tue, 17 Jan 2012 11:38:30 +0000 (UTC)
commit 3f328463a8c1ebdb254ed07504a2289bf59354c0
Author: Adel Gadllah <adel gadllah gmail com>
Date: Tue Jan 17 12:17:34 2012 +0100
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
js/ui/main.js | 1 +
js/ui/polkitAuthenticationAgent.js | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index c160fee..6b7218b 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -332,6 +332,7 @@ function _windowRemoved(workspace, window) {
workspace._lastRemovedWindow = null;
_queueCheckWorkspaces();
}
+ return false;
});
}
diff --git a/js/ui/polkitAuthenticationAgent.js b/js/ui/polkitAuthenticationAgent.js
index ff2d35c..fc9ceac 100644
--- a/js/ui/polkitAuthenticationAgent.js
+++ b/js/ui/polkitAuthenticationAgent.js
@@ -393,6 +393,7 @@ const AuthenticationAgent = new Lang.Class({
Lang.bind(this,
function() {
this._reallyCompleteRequest(wasDismissed);
+ return false;
}));
} else {
this._reallyCompleteRequest(wasDismissed);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]