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>
This commit is contained in:
parent
157651a784
commit
82044449c4
|
@ -668,9 +668,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue