Bug 1216550 - Destroy profiler front on toolbox destruction. r=jsantell
authorAlexandre Poirot <poirot.alex@gmail.com>
Thu, 22 Oct 2015 08:06:16 -0700
changeset 304174 230d6e3c6060b86fc5eed34b7a8303c2a4d0cf8d
parent 304173 1d58270d6465b11de1b4c979fc538f78c3f0f01f
child 304175 d91e6b148b9077e2695aee5eee744b901e1a8515
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjsantell
bugs1216550
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1216550 - Destroy profiler front on toolbox destruction. r=jsantell
devtools/client/performance/legacy/actors.js
--- a/devtools/client/performance/legacy/actors.js
+++ b/devtools/client/performance/legacy/actors.js
@@ -67,16 +67,17 @@ LegacyProfilerFront.prototype = {
    * Unregisters events for the underlying profiler actor.
    */
   destroy: Task.async(function *() {
     if (this._poller) {
       yield this._poller.destroy();
     }
     yield this.unregisterEventNotifications({ events: this.EVENTS });
     this._target.client.removeListener("eventNotification", this._onProfilerEvent);
+    yield this._front.destroy();
   }),
 
   /**
    * Starts the profiler actor, if necessary.
    *
    * @option {number?} bufferSize
    * @option {number?} sampleFrequency
    */