Don't shadow a global variable, which allows the observer to be removed and thus fixes a leak. b=256886 r=ben sr=brendan

This commit is contained in:
dbaron%dbaron.org 2004-08-26 23:53:00 +00:00
Родитель 3cf00d4f33
Коммит 5488196f09
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);