forked from Mirrors/wine-wine
rpcrt4: Fix ITypeInfo leak in get_iface_info.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit a09c08f17a
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
stable
parent
fd6fe42003
commit
37d3edf9c9
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue