Commit a09c08f1 authored by Kevin Puetz's avatar Kevin Puetz Committed by Alexandre Julliard

rpcrt4: Fix ITypeInfo leak in get_iface_info.

parent c8c00d6f
......@@ -1265,14 +1265,16 @@ static HRESULT get_iface_info(ITypeInfo *typeinfo, WORD *funcs, WORD *parentfunc
if (FAILED(hr))
goto err;
hr = ITypeInfo_GetRefTypeInfo(*real_typeinfo, reftype, &parentinfo);
if (SUCCEEDED(hr))
{
hr = ITypeInfo_GetTypeAttr(parentinfo, &typeattr);
ITypeInfo_Release(parentinfo);
}
if (FAILED(hr))
goto err;
hr = ITypeInfo_GetTypeAttr(parentinfo, &typeattr);
if (FAILED(hr))
goto err;
*parentiid = typeattr->guid;
ITypeInfo_ReleaseTypeAttr(parentinfo, typeattr);
ITypeInfo_Release(parentinfo);
return S_OK;
......
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