From 5488196f09fc6db870195cdfec75aa19eeeb5946 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Thu, 26 Aug 2004 23:53:00 +0000 Subject: [PATCH] Don't shadow a global variable, which allows the observer to be removed and thus fixes a leak. b=256886 r=ben sr=brendan --- toolkit/mozapps/extensions/content/extensions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/mozapps/extensions/content/extensions.js b/toolkit/mozapps/extensions/content/extensions.js index bc2b2e9c0be..de503c17878 100644 --- a/toolkit/mozapps/extensions/content/extensions.js +++ b/toolkit/mozapps/extensions/content/extensions.js @@ -142,7 +142,7 @@ function Startup() } // Now look and see if we're being opened by XPInstall - var gDownloadManager = new XPInstallDownloadManager(); + gDownloadManager = new XPInstallDownloadManager(); var os = Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService); os.addObserver(gDownloadManager, "xpinstall-download-started", false);