Bug 660610: Don't double-free execAlloc_ after OOM. (r=nnethercote)

This commit is contained in:
Paul Biggar 2011-06-02 10:06:36 -07:00
Родитель b069a3b46a
Коммит daef7ba1e0
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -631,7 +631,8 @@ JaegerCompartment::Initialize()
TrampolineCompiler tc(execAlloc_, &trampolines);
if (!tc.compile()) {
delete execAlloc_;
js::Foreground::delete_(execAlloc_);
execAlloc_ = NULL;
return false;
}