зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1145049 - Stop leaking tab actors and root actor on disconnect. r=jryans
This commit is contained in:
Родитель
42cdd64c7b
Коммит
4605e1f1f7
|
@ -196,6 +196,11 @@ RootActor.prototype = {
|
||||||
this._parameters.onShutdown();
|
this._parameters.onShutdown();
|
||||||
}
|
}
|
||||||
this._extraActors = null;
|
this._extraActors = null;
|
||||||
|
this.conn = null;
|
||||||
|
this._tabActorPool = null;
|
||||||
|
this._globalActorPool = null;
|
||||||
|
this._parameters = null;
|
||||||
|
this._chromeActor = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
/* The 'listTabs' request and the 'tabListChanged' notification. */
|
/* The 'listTabs' request and the 'tabListChanged' notification. */
|
||||||
|
|
|
@ -1555,6 +1555,8 @@ DebuggerServerConnection.prototype = {
|
||||||
this._extraPools.map(function(p) { p.cleanup(); });
|
this._extraPools.map(function(p) { p.cleanup(); });
|
||||||
this._extraPools = null;
|
this._extraPools = null;
|
||||||
|
|
||||||
|
this.rootActor = null;
|
||||||
|
this._transport = null;
|
||||||
DebuggerServer._connectionClosed(this);
|
DebuggerServer._connectionClosed(this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче