Nikolay Sivov : oleaut32: Fix a couple of leaks on typeinfo release ( Valgrind).

Alexandre Julliard julliard at winehq.org
Mon Jan 24 11:07:40 CST 2011


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Jan 24 07:27:43 2011 +0300

oleaut32: Fix a couple of leaks on typeinfo release (Valgrind).

---

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




More information about the wine-cvs mailing list