[SHELL32] Properly release an StgMedium

This commit is contained in:
Mark Jansen
2019-10-20 00:27:58 +02:00
parent 0f2cb5abc7
commit 75cabb07be

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)
{