1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[spidermonkey] Delete ac2 (AutoCompartment)

This commit is contained in:
Witold Filipczyk 2020-11-27 17:21:11 +01:00
parent a24cea2d87
commit d4ccb07cf6

View File

@ -333,8 +333,8 @@ spidermonkey_put_interpreter(struct ecmascript_interpreter *interpreter)
if (!js_module_init_ok) return; if (!js_module_init_ok) return;
ctx = interpreter->backend_data; ctx = interpreter->backend_data;
if (interpreter->ac) { if (interpreter->ac2) {
//delete (JSAutoCompartment *)interpreter->ac; delete (JSAutoCompartment *)interpreter->ac2;
} }
if (interpreter->ar) { if (interpreter->ar) {
delete (JSAutoRequest *)interpreter->ar; delete (JSAutoRequest *)interpreter->ar;
@ -342,6 +342,7 @@ spidermonkey_put_interpreter(struct ecmascript_interpreter *interpreter)
// JS_DestroyContext(ctx); // JS_DestroyContext(ctx);
interpreter->backend_data = NULL; interpreter->backend_data = NULL;
interpreter->ac = nullptr; interpreter->ac = nullptr;
interpreter->ac2 = nullptr;
interpreter->ar = nullptr; interpreter->ar = nullptr;
} }