[Pkg-mozext-commits] [itsalltext] 118/459: * fixed a memory leak in the preferences observer
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit f7a57305e714c746ef093c81044a7b324d0563f8
Author: docwhat at gerf.org <docwhat at gerf.org>
Date: Fri Feb 9 12:54:00 2007 -0500
* fixed a memory leak in the preferences observer
---
chrome/content/itsalltext.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/itsalltext.js b/chrome/content/itsalltext.js
index 11f8d17..4689607 100644
--- a/chrome/content/itsalltext.js
+++ b/chrome/content/itsalltext.js
@@ -489,7 +489,7 @@ var ItsAllText = function() {
// Do the startup when things are loaded.
window.addEventListener("load", startup, true);
// Do the startup when things are unloaded.
- window.addEventListener("unload", function(event){that.monitor.unwatch(event.originalTarget||document);}, true);
+ window.addEventListener("unload", function(event){that.monitor.unwatch(event.originalTarget||document); that.preference_observer.unregister();}, true);
// Start the monitor
that.monitor.restart();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list