Bug 850446 - Fix NULL deref in StartOffThreadIonCompile(). r=bhackett

This commit is contained in:
Sean Stangl 2013-03-13 12:36:47 -07:00
parent 4b196a0cdc
commit 96b49ecdf7

View File

@ -30,6 +30,7 @@ js::StartOffThreadIonCompile(JSContext *cx, ion::IonBuilder *builder)
if (!rt->workerThreadState->init(rt)) {
js_delete(rt->workerThreadState);
rt->workerThreadState = NULL;
return false;
}
}
WorkerThreadState &state = *cx->runtime->workerThreadState;