[2/3] msxml3: Fix a leak on error path
Nikolay Sivov
nsivov at codeweavers.com
Wed Nov 28 23:53:57 CST 2012
Fix a leak on error path
-------------- next part --------------
>From d148fed5e2a11ee4d14fbdb521440870f7cbbd05 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu, 29 Nov 2012 07:35:19 -0500
Subject: [PATCH 3/6] Fix a leak on error path
---
dlls/msxml3/dispex.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/msxml3/dispex.c b/dlls/msxml3/dispex.c
index 3aafc44..3c84e09 100644
--- a/dlls/msxml3/dispex.c
+++ b/dlls/msxml3/dispex.c
@@ -598,6 +598,7 @@ static HRESULT WINAPI DispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc
hres = IUnknown_QueryInterface(This->outer, get_riid_from_tid(data->funcs[n].tid), (void**)&unk);
if(FAILED(hres)) {
ERR("Could not get iface: %08x\n", hres);
+ ITypeInfo_Release(ti);
return E_FAIL;
}
--
1.7.10.4
More information about the wine-patches
mailing list