Nikolay Sivov : msxml3: Fix a leak on error path.

Alexandre Julliard julliard at winehq.org
Thu Nov 29 14:15:44 CST 2012


Module: wine
Branch: master
Commit: 00484ed942b6d499eb524b7727a567d37c0015f5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=00484ed942b6d499eb524b7727a567d37c0015f5

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Nov 29 07:35:19 2012 -0500

msxml3: Fix a leak on error path.

---

 dlls/msxml3/dispex.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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;
     }
 




More information about the wine-cvs mailing list