mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1016875 - Part1: Fixing leaking of mImportParent. r=mrbkap
This commit is contained in:
parent
05caaeffdd
commit
6fb3e2f23c
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user