Commit b45e4496 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

oleaut32: Don't leak SafeArray (coverity).

parent 69d8e75a
......@@ -6499,6 +6499,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
if (hres != S_OK)
{
ERR("SafeArrayAccessData failed with %x\n", hres);
SafeArrayDestroy(a);
break;
}
for (j = 0; j < bound.cElements; j++)
......@@ -6507,6 +6508,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
if (hres != S_OK)
{
ERR("SafeArrayUnaccessData failed with %x\n", hres);
SafeArrayDestroy(a);
break;
}
V_ARRAY(&rgvarg[i]) = a;
......
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