Bug 1016875 - Part1: Fixing leaking of mImportParent. r=mrbkap

This commit is contained in:
Gabor Krizsanits 2014-07-16 14:31:58 +02:00
parent 05caaeffdd
commit 6fb3e2f23c

View File

@ -59,6 +59,7 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(ImportLoader)
NS_IMPL_CYCLE_COLLECTION(ImportLoader,
mDocument,
mImportParent,
mLinks)
ImportLoader::ImportLoader(nsIURI* aURI, nsIDocument* aImportParent)
@ -233,7 +234,9 @@ ImportLoader::Open()
channelPolicy);
NS_ENSURE_SUCCESS_VOID(rv);
mChannel->AsyncOpen(this, nullptr);
rv = mChannel->AsyncOpen(this, nullptr);
NS_ENSURE_SUCCESS_VOID(rv);
BlockScripts();
ae.Pass();
}