From a6de06aa4c92cb1454b9c6b3d5a6a7e93b286368 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 24 Jan 2011 07:27:43 +0300 Subject: [PATCH] oleaut32: Fix a couple of leaks on typeinfo release (Valgrind). --- dlls/oleaut32/typelib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index b1e3e4f809d..cc3497ea36c 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -5030,6 +5030,7 @@ static void ITypeInfoImpl_Destroy(ITypeInfoImpl *This) VariantClear(&elemdesc->u.paramdesc.pparamdescex->varDefaultValue); heap_free(elemdesc->u.paramdesc.pparamdescex); } + TLB_FreeCustData(pFInfo->pParamDesc[i].pCustData); SysFreeString(pFInfo->pParamDesc[i].Name); } heap_free(pFInfo->funcdesc.lprgelemdescParam); @@ -5052,6 +5053,7 @@ static void ITypeInfoImpl_Destroy(ITypeInfoImpl *This) } TLB_FreeCustData(pVInfo->pCustData); SysFreeString(pVInfo->Name); + SysFreeString(pVInfo->HelpString); pVInfoNext = pVInfo->next; heap_free(pVInfo); }