Commit 1980fcaf authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

rpcrt4: Use MustFree for all non-base types in get_param_pointer_info.

Fixes a leak for VT_VARIANT. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent d26998d6
......@@ -925,12 +925,6 @@ static HRESULT get_param_pointer_info(ITypeInfo *typeinfo, TYPEDESC *tdesc, int
ITypeInfo_ReleaseTypeAttr(refinfo, attr);
ITypeInfo_Release(refinfo);
break;
case VT_BSTR:
*flags |= IsSimpleRef | MustFree;
*tfs_tdesc = tdesc;
if (!is_in && is_out)
*server_size = sizeof(void *);
break;
default:
*flags |= IsSimpleRef;
*tfs_tdesc = tdesc;
......@@ -938,6 +932,8 @@ static HRESULT get_param_pointer_info(ITypeInfo *typeinfo, TYPEDESC *tdesc, int
*server_size = type_memsize(typeinfo, tdesc);
if ((*basetype = get_basetype(typeinfo, tdesc)))
*flags |= IsBasetype;
else
*flags |= MustFree;
break;
}
......
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