From 7fcea36a82444e317cd627ab24fb18f5a81a1868 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Fri, 20 Aug 2010 14:59:01 -0500 Subject: [PATCH] oleaut32: Improve ITypeInfo::ReleaseTypeAttr. --- dlls/oleaut32/typelib2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c index 71fd43454b2..ef43cab5f00 100644 --- a/dlls/oleaut32/typelib2.c +++ b/dlls/oleaut32/typelib2.c @@ -3564,6 +3564,9 @@ static void WINAPI ITypeInfo2_fnReleaseTypeAttr( { TRACE("(%p,%p)\n", iface, pTypeAttr); + if (pTypeAttr->tdescAlias.vt != VT_USERDEFINED) + release_typedesc(pTypeAttr->tdescAlias.u.lptdesc); + HeapFree(GetProcessHeap(), 0, pTypeAttr); }