Bug 292556 JS_NewRuntime doesn't handle failure from js_SetupLocks

r=shaver a=shaver
This commit is contained in:
timeless%mozdev.org 2005-05-05 05:31:27 +00:00
parent e446bed4da
commit c982df2b12

View File

@ -700,7 +700,9 @@ JS_NewRuntime(uint32 maxbytes)
rt->requestDone = JS_NEW_CONDVAR(rt->gcLock);
if (!rt->requestDone)
goto bad;
js_SetupLocks(8, 16); /* this is asymmetric with JS_ShutDown. */
/* this is asymmetric with JS_ShutDown: */
if (!js_SetupLocks(8, 16))
goto bad;
rt->rtLock = JS_NEW_LOCK();
if (!rt->rtLock)
goto bad;