mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1145049 - Stop leaking tab actors and root actor on disconnect. r=jryans
This commit is contained in:
parent
8b4c3a2d9e
commit
432cb32f77
@ -193,6 +193,11 @@ RootActor.prototype = {
|
||||
this._parameters.onShutdown();
|
||||
}
|
||||
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. */
|
||||
|
@ -1555,6 +1555,8 @@ DebuggerServerConnection.prototype = {
|
||||
this._extraPools.map(function(p) { p.cleanup(); });
|
||||
this._extraPools = null;
|
||||
|
||||
this.rootActor = null;
|
||||
this._transport = null;
|
||||
DebuggerServer._connectionClosed(this);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user