Bug 1145049 - Stop leaking tab actors and root actor on disconnect. r=jryans

This commit is contained in:
Alexandre Poirot 2015-04-18 09:39:07 +02:00
parent bb99cc2740
commit 51fd247286
2 changed files with 7 additions and 0 deletions

View File

@ -196,6 +196,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. */

View File

@ -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);
},