[PATCH 6/6] ole32: Fix a leak when creating antimoniker through activation.
Nikolay Sivov
nsivov at codeweavers.com
Thu Jan 30 05:53:46 CST 2020
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/ole32/antimoniker.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/ole32/antimoniker.c b/dlls/ole32/antimoniker.c
index 6efd4ae853..7abbfc544f 100644
--- a/dlls/ole32/antimoniker.c
+++ b/dlls/ole32/antimoniker.c
@@ -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;
}
--
2.24.1
More information about the wine-devel
mailing list