Fixed leak of an HTML Meta content object

git-svn-id: svn://10.0.0.236/trunk@7813 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com 1998-08-12 05:27:21 +00:00
parent 1e5f0b9259
commit 7846ca35d8
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);
}