[Pkg-mozext-commits] [itsalltext] 79/459: Hopefully, this fixes the leak

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:08 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 cc6622342d41f6a78654265b5e8ba13d45c1faba
Author: docwhat at gerf.org <docwhat at gerf.org>
Date:   Fri Jan 19 11:17:29 2007 -0500

    Hopefully, this fixes the leak
---
 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 06e9bee..fd47b4c 100644
--- a/chrome/content/itsalltext.js
+++ b/chrome/content/itsalltext.js
@@ -203,7 +203,7 @@ function ItsAllTextOverlay() {
      */
     observe: function(aSubject, aTopic, aData) {
       if (aTopic != "nsPref:changed") {return;}
-      if (that.preferences.hasOwnProperty(aData)) {
+      if (that.preferences) {
         that.preferences[aData] = this._branch['get'+(this.types[aData])+'Pref'](aData);
       }
     }

-- 
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