mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
2f64d6b533
commit
2ffd310fa0
@ -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…
Reference in New Issue
Block a user