Fix orange by properly refcounting

This commit is contained in:
cvshook@sicking.cc
2006-11-11 01:43:11 +00:00
parent 13bf1d031c
commit b2e8047d2e
5 changed files with 6 additions and 0 deletions

View File

@@ -1296,6 +1296,7 @@ nsGenericElement::GetChildNodes(nsIDOMNodeList** aChildNodes)
if (!slots->mChildNodes) {
return NS_ERROR_OUT_OF_MEMORY;
}
NS_ADDREF(slots->mChildNodes);
}
NS_ADDREF(*aChildNodes = slots->mChildNodes);