Bug 971177 - Clean up Style Editor's debuggee. r=harth, a=sledru
authorJ. Ryan Stinnett <jryans@gmail.com>
Tue, 18 Mar 2014 17:52:33 -0500
changeset 192194 ff62df1b6b483e3e633d489de889d980bf2862df
parent 192193 7568d39b81c5f378b56d95d40281cf64cbce0cef
child 192195 0d083ae6eacc9d43fafe3880cdc7c85542594d41
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersharth, sledru
bugs971177
milestone30.0a2
Bug 971177 - Clean up Style Editor's debuggee. r=harth, a=sledru
browser/devtools/styleeditor/styleeditor-panel.js
--- a/browser/devtools/styleeditor/styleeditor-panel.js
+++ b/browser/devtools/styleeditor/styleeditor-panel.js
@@ -130,16 +130,18 @@ StyleEditorPanel.prototype = {
   destroy: function() {
     if (!this._destroyed) {
       this._destroyed = true;
 
       this._target.off("close", this.destroy);
       this._target = null;
       this._toolbox = null;
       this._panelDoc = null;
+      this._debuggee.destroy();
+      this._debuggee = null;
 
       this.UI.destroy();
     }
 
     return promise.resolve(null);
   },
 }