mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-16 23:25:03 +00:00
Added NS_RELEASE to fix leak of a HTML style element
This commit is contained in:
parent
1774d719f3
commit
7b508ab8c9
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user