зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1124018 - Null the allocation site table if initialization fails. r=jonco
This commit is contained in:
Родитель
89ad6af62f
Коммит
adfb811900
|
@ -2285,6 +2285,7 @@ TypeCompartment::addAllocationSiteTypeObject(JSContext *cx, AllocationSiteKey ke
|
|||
allocationSiteTable = cx->new_<AllocationSiteTable>();
|
||||
if (!allocationSiteTable || !allocationSiteTable->init()) {
|
||||
js_delete(allocationSiteTable);
|
||||
allocationSiteTable = nullptr;
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче