oleview: Removed memory leak in EnumImplTypes.
This commit is contained in:
parent
cdc3ee70b3
commit
3023a186b9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue