Bug 579524 - DEBUG_CC broken by fatval. r=sayrer

This commit is contained in:
Andreas Gal 2010-07-16 20:41:28 -07:00
parent c39299c437
commit d7b656c9d6
2 changed files with 7 additions and 3 deletions

View File

@ -495,7 +495,7 @@ NoteJSRoot(JSTracer *trc, void *thing, uint32 kind)
nsXPConnect::GetXPConnect());
}
}
else if(kind != JSTRACE_DOUBLE && kind != JSTRACE_STRING)
else if(kind != JSTRACE_STRING)
{
JS_TraceChildren(trc, thing, kind);
}

View File

@ -3146,13 +3146,17 @@ nsCycleCollector::DestroyReversedEdges()
void
nsCycleCollector::ShouldBeFreed(nsISupports *n)
{
mExpectedGarbage.PutEntry(n);
if (n) {
mExpectedGarbage.PutEntry(n);
}
}
void
nsCycleCollector::WasFreed(nsISupports *n)
{
mExpectedGarbage.RemoveEntry(n);
if (n) {
mExpectedGarbage.RemoveEntry(n);
}
}
#endif