mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 502687 - GCGraphBuilder::AddNode crashes on OOM. r=dbaron
This commit is contained in:
parent
96a04e8df6
commit
c333b464ab
@ -1336,6 +1336,9 @@ GCGraphBuilder::AddNode(void *s, nsCycleCollectionParticipant *aParticipant
|
||||
)
|
||||
{
|
||||
PtrToNodeEntry *e = static_cast<PtrToNodeEntry*>(PL_DHashTableOperate(&mPtrToNodeMap, s, PL_DHASH_ADD));
|
||||
if (!e)
|
||||
return nsnull;
|
||||
|
||||
PtrInfo *result;
|
||||
if (!e->mNode) {
|
||||
// New entry.
|
||||
|
Loading…
Reference in New Issue
Block a user