1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05: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:
Kalle Olavi Niemitalo 2008-09-07 18:04:18 +03:00 committed by Kalle Olavi Niemitalo
parent d93bceb9bd
commit 0ee1d05d81

View File

@ -56,6 +56,7 @@ spidermonkey_runtime_addref(void)
JS_DestroyRuntime(spidermonkey_runtime);
spidermonkey_runtime = NULL;
JS_ShutDown();
return 0;
}
}