[PATCH 11/11] Fix couple of leaks on typeinfo release (Valgrind)

Nikolay Sivov nsivov at codeweavers.com
Sun Jan 23 22:27:43 CST 2011


---
 dlls/oleaut32/typelib.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index b1e3e4f..cc3497e 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);
     }
-- 
1.5.6.5


--------------050000020908020902070000--



More information about the wine-patches mailing list