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

This commit is contained in:
Alexandre Poirot 2015-04-15 00:35:33 +02:00
Родитель 8b4c3a2d9e
Коммит 432cb32f77
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

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