Fixed a leak of the HTML title

git-svn-id: svn://10.0.0.236/trunk@7801 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-08-12 01:36:25 +00:00
parent f5f5f829b6
commit 6b980541fe
2 changed files with 2 additions and 0 deletions

View File

@@ -423,6 +423,7 @@ HTMLContentSink::SetTitle(const nsString& aValue)
nsresult rv = NS_NewHTMLTitle(&it, atom, aValue);
if (NS_OK == rv) {
mHead->AppendChild(it, PR_FALSE);
NS_RELEASE(it);
}
NS_RELEASE(atom);
return NS_OK;

View File

@@ -423,6 +423,7 @@ HTMLContentSink::SetTitle(const nsString& aValue)
nsresult rv = NS_NewHTMLTitle(&it, atom, aValue);
if (NS_OK == rv) {
mHead->AppendChild(it, PR_FALSE);
NS_RELEASE(it);
}
NS_RELEASE(atom);
return NS_OK;