Bug 502687 - GCGraphBuilder::AddNode crashes on OOM. Patch by mrbkap, r=dbaron, a=dveditz.

git-svn-id: svn://10.0.0.236/trunk@259382 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%propagandism.org
2010-01-13 14:29:15 +00:00
parent 84082bb45e
commit 939b4e57e3

View File

@@ -1283,6 +1283,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.