ole32: Fix a leak when creating pointer moniker through activation.

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

View File

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