Andrew Eikum : oleaut32: Improve ITypeInfo::ReleaseTypeAttr.

Alexandre Julliard julliard at winehq.org
Mon Aug 23 10:50:13 CDT 2010


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

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Fri Aug 20 14:59:01 2010 -0500

oleaut32: Improve ITypeInfo::ReleaseTypeAttr.

---

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

diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c
index 71fd434..ef43cab 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);
 }
 




More information about the wine-cvs mailing list