oleaut32: Improve ITypeInfo::ReleaseTypeAttr.

This commit is contained in:
Andrew Eikum 2010-08-20 14:59:01 -05:00 committed by Alexandre Julliard
parent 3f13a07b47
commit 7fcea36a82
1 changed files with 3 additions and 0 deletions

View File

@ -3564,6 +3564,9 @@ static void WINAPI ITypeInfo2_fnReleaseTypeAttr(
{ {
TRACE("(%p,%p)\n", iface, pTypeAttr); TRACE("(%p,%p)\n", iface, pTypeAttr);
if (pTypeAttr->tdescAlias.vt != VT_USERDEFINED)
release_typedesc(pTypeAttr->tdescAlias.u.lptdesc);
HeapFree(GetProcessHeap(), 0, pTypeAttr); HeapFree(GetProcessHeap(), 0, pTypeAttr);
} }