mirror of
https://github.com/rkd77/elinks.git
synced 2025-05-18 00:48:57 -04:00
1031: Return 0 from spidermonkey_runtime_addref if JS_NewContext fails.
Previously, this would have caused an assertion failure.
This commit is contained in:
parent
d93bceb9bd
commit
0ee1d05d81
@ -56,6 +56,7 @@ spidermonkey_runtime_addref(void)
|
|||||||
JS_DestroyRuntime(spidermonkey_runtime);
|
JS_DestroyRuntime(spidermonkey_runtime);
|
||||||
spidermonkey_runtime = NULL;
|
spidermonkey_runtime = NULL;
|
||||||
JS_ShutDown();
|
JS_ShutDown();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user