mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
Bug 1071998 - Use js_free to free JSShellContextData in the JS shell. r=jorendorff
--HG-- extra : rebase_source : cee995d8aa10e9e45f23984345f2978b7e8e4798
This commit is contained in:
parent
d37e99f167
commit
402eaa8531
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user