зеркало из https://github.com/mozilla/pjs.git
Added NS_RELEASE to fix leak of a HTML style element
This commit is contained in:
Родитель
6fbcfd405e
Коммит
6be0f1bb4f
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче