From 1967b35962ea0c2476da8986404c8d8f45eda0b9 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Tue, 30 Jul 2013 15:19:54 +0200 Subject: [PATCH] oleaut32: Free guid_list in ITypeLib2_Release. --- dlls/oleaut32/typelib.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index b0cfc88bbac..44eea5b8979 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -4577,6 +4577,7 @@ static ULONG WINAPI ITypeLib2_fnRelease( ITypeLib2 *iface) TLBImpLib *pImpLib, *pImpLibNext; TLBRefType *ref_type; TLBString *tlbstr, *tlbstr_next; + TLBGuid *tlbguid, *tlbguid_next; void *cursor2; int i; @@ -4604,6 +4605,11 @@ static ULONG WINAPI ITypeLib2_fnRelease( ITypeLib2 *iface) heap_free(tlbstr); } + LIST_FOR_EACH_ENTRY_SAFE(tlbguid, tlbguid_next, &This->guid_list, TLBGuid, entry) { + list_remove(&tlbguid->entry); + heap_free(tlbguid); + } + TLB_FreeCustData(&This->custdata_list); for (i = 0; i < This->ctTypeDesc; i++)