Fixed leak of an HTML Meta content object

This commit is contained in:
troy%netscape.com 1998-08-12 05:27:21 +00:00
parent 3e30a759a0
commit 9fcc472d50
2 changed files with 2 additions and 0 deletions

View File

@ -1648,6 +1648,7 @@ HTMLContentSink::ProcessMETATag(const nsIParserNode& aNode)
if (NS_OK == rv) {
rv = AddAttributes(aNode, it);
mHead->AppendChild(it, PR_FALSE);
NS_RELEASE(it);
}
NS_RELEASE(atom);
}

View File

@ -1648,6 +1648,7 @@ HTMLContentSink::ProcessMETATag(const nsIParserNode& aNode)
if (NS_OK == rv) {
rv = AddAttributes(aNode, it);
mHead->AppendChild(it, PR_FALSE);
NS_RELEASE(it);
}
NS_RELEASE(atom);
}