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