Added NS_RELEASE to fix leak of a HTML style element

This commit is contained in:
troy%netscape.com 1998-12-03 16:46:56 +00:00
parent 1774d719f3
commit 7b508ab8c9
2 changed files with 2 additions and 0 deletions

View File

@ -2444,6 +2444,7 @@ HTMLContentSink::ProcessSTYLETag(const nsIParserNode& aNode)
// Now that we have a url and a unicode input stream, parse the
// style sheet.
rv = LoadStyleSheet(url, uin, PR_TRUE, title, media, element);
NS_RELEASE(element);
NS_RELEASE(uin);
NS_RELEASE(url);

View File

@ -2444,6 +2444,7 @@ HTMLContentSink::ProcessSTYLETag(const nsIParserNode& aNode)
// Now that we have a url and a unicode input stream, parse the
// style sheet.
rv = LoadStyleSheet(url, uin, PR_TRUE, title, media, element);
NS_RELEASE(element);
NS_RELEASE(uin);
NS_RELEASE(url);