Bug 865915 - Fixed unmatched JS_EndRequest. r=mccr8
authorBenoit Girard <b56girard@gmail.com>
Mon, 29 Apr 2013 14:33:47 -0400
changeset 141206 6a0948b0cd69ddd4e532c167039bcddac0f469e4
parent 141205 d8b7bf4c92231c843db488651568773f78b780e0
child 141207 cc11cd6a518a0baaf071c5c02207c231c6c4161c
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8
bugs865915
milestone23.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 865915 - Fixed unmatched JS_EndRequest. r=mccr8
tools/profiler/SaveProfileTask.cpp
--- a/tools/profiler/SaveProfileTask.cpp
+++ b/tools/profiler/SaveProfileTask.cpp
@@ -73,17 +73,16 @@ SaveProfileTask::Run() {
       jsval val = OBJECT_TO_JSVAL(profileObj);
       JS_Stringify(cx, &val, nullptr, JSVAL_NULL, WriteCallback, &stream);
       stream.close();
       LOGF("Saved to %s", tmpPath.get());
     } else {
       LOG("Fail to open profile log file.");
     }
   }
-  JS_EndRequest(cx);
   JS_DestroyContext(cx);
 
   return NS_OK;
 }
 
 NS_IMPL_ISUPPORTS1(ProfileSaveEvent, nsIProfileSaveEvent)
 
 nsresult