Fix for bug 464067 (memory leak while running SVG reftests). r/sr=jst.

This commit is contained in:
Peter Van der Beken
2008-11-27 18:45:25 +01:00
parent 9351da0f38
commit 284557314c
5 changed files with 9 additions and 3 deletions

View File

@@ -4044,8 +4044,11 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsGenericElement)
PRUint32 attrs = tmp->mAttrsAndChildren.AttrCount();
for (i = 0; i < attrs; i++) {
const nsAttrName* name = tmp->mAttrsAndChildren.AttrNameAt(i);
if (!name->IsAtom())
if (!name->IsAtom()) {
NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(cb,
"mAttrsAndChildren[i]->NodeInfo()");
cb.NoteXPCOMChild(name->NodeInfo());
}
}
PRUint32 kids = tmp->mAttrsAndChildren.ChildCount();