Bug 1607984 - P3. Fix leak in nsDSURIContentListener. r=smaug

If we were to open the window to close it immediately; we would leak a nsHtml5Parser object.

Differential Revision: https://phabricator.services.mozilla.com/D70000
This commit is contained in:
Jean-Yves Avenard 2020-04-23 00:57:53 +00:00
Родитель 2608ba5a1e
Коммит c57f6d6300
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -195,6 +195,7 @@ nsDSURIContentListener::DoContent(const nsACString& aContentType,
if (NS_FAILED(rv)) {
// we don't know how to handle the content
nsCOMPtr<nsIStreamListener> forget = dont_AddRef(*aContentHandler);
*aContentHandler = nullptr;
return rv;
}