Bug 339477 tabbrowser.xml's observer destructor never gets called, leaking mTabClipWidth at shutdown. Patch by Adam Guthrie <ispiked@gmail.com>, r+a=mconnor

git-svn-id: svn://10.0.0.236/trunk@198877 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jminta%gmail.com
2006-06-02 18:06:01 +00:00
parent c042c38eb0
commit 7c151e2c8e

View File

@@ -2279,7 +2279,7 @@
}
this._updateDisableBackgroundClose();
pb2.addObserver("browser.tabs.disableBackgroundClose", this, false);
pb2.addObserver("browser.tabs.disableBackgroundClose", this, true);
var self = this;
function onResize() {
@@ -2288,13 +2288,6 @@
window.addEventListener("resize", onResize, false);
</constructor>
<destructor>
var pb2 =
Components.classes["@mozilla.org/preferences-service;1"].
getService(Components.interfaces.nsIPrefBranch2);
pb2.removeObserver("browser.tabs.disableBackgroundClose", this);
</destructor>
<method name="_updateDisableBackgroundClose">
<body><![CDATA[
var prefs =