ole32: Fix a leak when creating antimoniker through activation.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 82044449c4)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
stable
Nikolay Sivov 2020-01-30 14:53:46 +03:00 committed by Michael Stefaniuc
parent ba06f2fb19
commit 61eb313094
1 changed files with 1 additions and 3 deletions

View File

@ -646,9 +646,7 @@ HRESULT WINAPI AntiMoniker_CreateInstance(IClassFactory *iface,
return hr;
hr = IMoniker_QueryInterface(pMoniker, riid, ppv);
if (FAILED(hr))
IMoniker_Release(pMoniker);
IMoniker_Release(pMoniker);
return hr;
}