oleaut32: Improve ITypeInfo::ReleaseTypeAttr.
authorAndrew Eikum <aeikum@codeweavers.com>
Fri, 20 Aug 2010 19:59:01 +0000 (14:59 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 23 Aug 2010 09:49:36 +0000 (11:49 +0200)
dlls/oleaut32/typelib2.c

index 71fd43454b2aca6cc61d92c0a7fa7a6d9740f64d..ef43cab5f001f4ad6c2a811e5ddcda01632f8815 100644 (file)
@@ -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);
 }