Fix orange by properly refcounting
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user