Fixed a leak of the HTML title

This commit is contained in:
troy@netscape.com
1998-08-12 01:36:25 +00:00
parent 90c47cc034
commit a5c7e92b4e
2 changed files with 2 additions and 0 deletions
@@ -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;