Bug 1278752 (part 1) - Add a missing null check in PropertyTypeIncludes. r=bhackett.

--HG--
extra : rebase_source : 979c77b212a2a02bb2caef66540963760d944964
This commit is contained in:
Nicholas Nethercote 2016-06-03 16:12:25 +10:00
Родитель bc967b6b86
Коммит 3e22172f81
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -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());
}