From 523fb9c06be969d2800283463083930d01ad9ddc Mon Sep 17 00:00:00 2001 From: Junior Hsu Date: Mon, 29 Jul 2019 22:42:39 +0000 Subject: [PATCH] Bug 1569772 - Release load group on main thread in win/nsIconChannel r=tnikkel Differential Revision: https://phabricator.services.mozilla.com/D39795 --HG-- extra : moz-landing-system : lando --- image/decoders/icon/win/nsIconChannel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/image/decoders/icon/win/nsIconChannel.cpp b/image/decoders/icon/win/nsIconChannel.cpp index 6f9210d78fe9..a816c912bf5b 100644 --- a/image/decoders/icon/win/nsIconChannel.cpp +++ b/image/decoders/icon/win/nsIconChannel.cpp @@ -170,6 +170,10 @@ nsIconChannel::~nsIconChannel() { NS_ReleaseOnMainThreadSystemGroup("nsIconChannel::mLoadInfo", mLoadInfo.forget()); } + if (mLoadGroup) { + NS_ReleaseOnMainThreadSystemGroup("nsIconChannel::mLoadGroup", + mLoadGroup.forget()); + } } NS_IMPL_ISUPPORTS(nsIconChannel, nsIChannel, nsIRequest, nsIRequestObserver,