Commit 3023a186 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

oleview: Removed memory leak in EnumImplTypes.

parent cdc3ee70
...@@ -744,8 +744,16 @@ static int EnumImplTypes(ITypeInfo *pTypeInfo, int cImplTypes, HTREEITEM hParent ...@@ -744,8 +744,16 @@ static int EnumImplTypes(ITypeInfo *pTypeInfo, int cImplTypes, HTREEITEM hParent
if(FAILED(ITypeInfo_GetRefTypeInfo(pTypeInfo, hRefType, &pRefTypeInfo))) if(FAILED(ITypeInfo_GetRefTypeInfo(pTypeInfo, hRefType, &pRefTypeInfo)))
continue; continue;
if(FAILED(ITypeInfo_GetDocumentation(pRefTypeInfo, MEMBERID_NIL, &bstrName, if(FAILED(ITypeInfo_GetDocumentation(pRefTypeInfo, MEMBERID_NIL, &bstrName,
NULL, NULL, NULL))) continue; NULL, NULL, NULL)))
if(FAILED(ITypeInfo_GetTypeAttr(pRefTypeInfo, &pTypeAttr))) continue; {
ITypeInfo_Release(pRefTypeInfo);
continue;
}
if(FAILED(ITypeInfo_GetTypeAttr(pRefTypeInfo, &pTypeAttr)))
{
ITypeInfo_Release(pRefTypeInfo);
continue;
}
U(tvis).item.cchTextMax = SysStringLen(bstrName); U(tvis).item.cchTextMax = SysStringLen(bstrName);
U(tvis).item.pszText = bstrName; U(tvis).item.pszText = bstrName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment