mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1171716 - Part 4: Use NS_ReleaseOnMainThread in JarChannel dtor. r=froydnj
This commit is contained in:
parent
373ce6a056
commit
537c445a65
@ -213,14 +213,7 @@ nsJARChannel::nsJARChannel()
|
||||
|
||||
nsJARChannel::~nsJARChannel()
|
||||
{
|
||||
if (mLoadInfo) {
|
||||
nsCOMPtr<nsIThread> mainThread;
|
||||
NS_GetMainThread(getter_AddRefs(mainThread));
|
||||
|
||||
nsILoadInfo *forgetableLoadInfo;
|
||||
mLoadInfo.forget(&forgetableLoadInfo);
|
||||
NS_ProxyRelease(mainThread, forgetableLoadInfo, false);
|
||||
}
|
||||
NS_ReleaseOnMainThread(mLoadInfo);
|
||||
|
||||
// release owning reference to the jar handler
|
||||
nsJARProtocolHandler *handler = gJarHandler;
|
||||
|
Loading…
Reference in New Issue
Block a user