[SHELL32] Properly release an StgMedium

This commit is contained in:
Mark Jansen 2019-10-20 00:27:58 +02:00
parent 0f2cb5abc7
commit 75cabb07be
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -1369,14 +1369,14 @@ COpenWithMenu::Initialize(PCIDLIST_ABSOLUTE pidlFolder,
{
TRACE("pidl is not a file\n");
GlobalUnlock(medium.hGlobal);
GlobalFree(medium.hGlobal);
ReleaseStgMedium(&medium);
return E_FAIL;
}
pidl = ILCombine(pidlFolder2, pidlChild);
GlobalUnlock(medium.hGlobal);
GlobalFree(medium.hGlobal);
ReleaseStgMedium(&medium);
if (!pidl)
{