Added NS_RELEASE to fix leak of a HTML style element

git-svn-id: svn://10.0.0.236/trunk@15697 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-12-03 16:46:56 +00:00
parent d60bb4659d
commit 5dc9f4f4a8
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);