Bug 499601: A lot of 'leaked URLs' when Fennec is finished, r=mfinkle

This commit is contained in:
Hiroyuki Ikezoe 2009-06-25 01:37:31 -04:00
parent 361a014e36
commit 14568764ef
2 changed files with 5 additions and 0 deletions

View File

@ -155,6 +155,9 @@ CanvasBrowser.prototype = {
} }
this._contentDOMWindowUtils = null; this._contentDOMWindowUtils = null;
if (!browser)
return;
browser.setAttribute("type", "content-primary"); browser.setAttribute("type", "content-primary");
if (!skipZoom) if (!skipZoom)

View File

@ -251,6 +251,8 @@ var Browser = {
}, },
shutdown: function() { shutdown: function() {
this._canvasBrowser.setCurrentBrowser(null);
BrowserUI.uninit(); BrowserUI.uninit();
var os = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService); var os = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService);