Commit 6f4ad21b authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

oleaut32: Fix a couple of memory leaks in the tests.

Found by Valgrind.
parent bf93519a
......@@ -1658,9 +1658,11 @@ static void test_SafeArrayChangeTypeEx(void)
MKARRAY(0,1,VT_UI1);
hres = VariantChangeTypeEx(&v2, &v, 0, 0, VT_NULL);
ok(hres == DISP_E_TYPEMISMATCH, "CTE VT_ARRAY|VT_UI1 returned %x\n", hres);
VariantClear(&v);
MKARRAY(0,1,VT_UI1);
hres = VariantChangeTypeEx(&v2, &v, 0, 0, VT_EMPTY);
ok(hres == DISP_E_TYPEMISMATCH, "CTE VT_ARRAY|VT_UI1 returned %x\n", hres);
VariantClear(&v);
}
......
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