mirror of
https://github.com/reactos/wine.git
synced 2025-02-18 11:58:22 +00:00
oleaut32: Don't leak SafeArray (coverity).
This commit is contained in:
parent
69d8e75a6b
commit
b45e4496af
@ -6499,6 +6499,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
|
|||||||
if (hres != S_OK)
|
if (hres != S_OK)
|
||||||
{
|
{
|
||||||
ERR("SafeArrayAccessData failed with %x\n", hres);
|
ERR("SafeArrayAccessData failed with %x\n", hres);
|
||||||
|
SafeArrayDestroy(a);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
for (j = 0; j < bound.cElements; j++)
|
for (j = 0; j < bound.cElements; j++)
|
||||||
@ -6507,6 +6508,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
|
|||||||
if (hres != S_OK)
|
if (hres != S_OK)
|
||||||
{
|
{
|
||||||
ERR("SafeArrayUnaccessData failed with %x\n", hres);
|
ERR("SafeArrayUnaccessData failed with %x\n", hres);
|
||||||
|
SafeArrayDestroy(a);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
V_ARRAY(&rgvarg[i]) = a;
|
V_ARRAY(&rgvarg[i]) = a;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user