зеркало из https://github.com/mozilla/gecko-dev.git
Bug 850446 - Fix NULL deref in StartOffThreadIonCompile(). r=bhackett
This commit is contained in:
Родитель
8b457de5bd
Коммит
db3d32120d
|
@ -30,6 +30,7 @@ js::StartOffThreadIonCompile(JSContext *cx, ion::IonBuilder *builder)
|
||||||
if (!rt->workerThreadState->init(rt)) {
|
if (!rt->workerThreadState->init(rt)) {
|
||||||
js_delete(rt->workerThreadState);
|
js_delete(rt->workerThreadState);
|
||||||
rt->workerThreadState = NULL;
|
rt->workerThreadState = NULL;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
WorkerThreadState &state = *cx->runtime->workerThreadState;
|
WorkerThreadState &state = *cx->runtime->workerThreadState;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче