mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
Bug 292556 JS_NewRuntime doesn't handle failure from js_SetupLocks
r=shaver a=shaver
This commit is contained in:
parent
e446bed4da
commit
c982df2b12
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user