зеркало из https://github.com/mozilla/gecko-dev.git
Bug 381239. Null out members of PrefHandler to break reference cycles. r=dietrich
This commit is contained in:
Родитель
a379fa8851
Коммит
0867e646a3
|
@ -63,6 +63,10 @@ PrefHandler.prototype = {
|
|||
*/
|
||||
destroy: function PC_PH_destroy() {
|
||||
this._pb.removeObserver(this._pref, this);
|
||||
this._pref = null;
|
||||
this._pb = null;
|
||||
this._defaultValue = null;
|
||||
this._serializable = null;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче