Bug 1600351 - don't release things we don't own, r=barret

Let's not be calling CFRelease on things we don't own.

Differential Revision: https://phabricator.services.mozilla.com/D55336

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Gijs Kruitbosch 2019-11-29 23:15:16 +00:00
parent df4a65de6c
commit 76000d88d1

View File

@ -181,7 +181,6 @@ NS_IMETHODIMP nsOSHelperAppService::IsCurrentAppOSDefaultForProtocol(const nsACS
CFURLRef selfURL = ::CFBundleCopyBundleURL(appBundle);
*_retval = ::CFEqual(selfURL, handlerBundleURL);
rv = NS_OK;
::CFRelease(appBundle);
::CFRelease(selfURL);
}
::CFRelease(handlerBundleURL);