зеркало из https://github.com/mozilla/pjs.git
Bug 337168 - Tag leakable object, and also remove the leak.
ChatZilla only. r=samuel
This commit is contained in:
Родитель
909356fe5f
Коммит
f4e7e6f3b5
|
@ -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 =
|
||||
|
|
|
@ -2460,6 +2460,7 @@ function cmdLoad(e)
|
|||
if ("onPrefChanged" in plugin)
|
||||
prefManager.addObserver(plugin);
|
||||
client.prefManager.addObserver(prefManager);
|
||||
client.prefManagers.push(prefManager);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче