зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1278752 (part 1) - Add a missing null check in PropertyTypeIncludes. r=bhackett.
--HG-- extra : rebase_source : 979c77b212a2a02bb2caef66540963760d944964
This commit is contained in:
Родитель
bc967b6b86
Коммит
3e22172f81
|
@ -6040,6 +6040,9 @@ PropertyTypeIncludes(TempAllocator& alloc, HeapTypeSetKey property,
|
|||
types = types->clone(alloc.lifoAlloc());
|
||||
else
|
||||
types = alloc.lifoAlloc()->new_<TemporaryTypeSet>();
|
||||
if (!types) {
|
||||
return false;
|
||||
}
|
||||
types->addType(newType, alloc.lifoAlloc());
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче