Bug 1071998 - Use js_free to free JSShellContextData in the JS shell. r=jorendorff

--HG--
extra : rebase_source : cee995d8aa10e9e45f23984345f2978b7e8e4798
This commit is contained in:
Guilherme Goncalves 2014-09-25 04:00:00 -04:00
parent 2f64d6b533
commit 2ffd310fa0

View File

@ -5452,7 +5452,7 @@ DestroyContext(JSContext *cx, bool withGC)
// data.
JSShellContextData *data = (JSShellContextData *) JS_GetContextPrivate(cx);
JS_SetContextPrivate(cx, nullptr);
free(data);
js_free(data);
withGC ? JS_DestroyContext(cx) : JS_DestroyContextNoGC(cx);
}