Bug 337168 - Tag leakable object, and also remove the leak.

ChatZilla only.
r=samuel


git-svn-id: svn://10.0.0.236/trunk@196469 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
silver%warwickcompsoc.co.uk 2006-05-13 16:48:41 +00:00
parent 28db23ac14
commit 37f956f1ca
2 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,7 @@ function PrefManager (branchName, defaultBundle)
this.prefs = new Object();
this.prefNames = new Array();
this.prefRecords = new Object();
this.observer = { observe: pm_observe };
this.observer = { observe: pm_observe, branch: branchName };
this.observers = new Array();
this.prefBranchInternal =

View File

@ -2460,6 +2460,7 @@ function cmdLoad(e)
if ("onPrefChanged" in plugin)
prefManager.addObserver(plugin);
client.prefManager.addObserver(prefManager);
client.prefManagers.push(prefManager);
}
else
{