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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user