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

Found by Valgrind.
This commit is contained in:
Huw Davies 2009-12-06 12:05:37 +00:00 committed by Alexandre Julliard
parent bf93519a39
commit 6f4ad21b9d
1 changed files with 2 additions and 0 deletions

View File

@ -1658,9 +1658,11 @@ static void test_SafeArrayChangeTypeEx(void)
MKARRAY(0,1,VT_UI1); MKARRAY(0,1,VT_UI1);
hres = VariantChangeTypeEx(&v2, &v, 0, 0, VT_NULL); hres = VariantChangeTypeEx(&v2, &v, 0, 0, VT_NULL);
ok(hres == DISP_E_TYPEMISMATCH, "CTE VT_ARRAY|VT_UI1 returned %x\n", hres); ok(hres == DISP_E_TYPEMISMATCH, "CTE VT_ARRAY|VT_UI1 returned %x\n", hres);
VariantClear(&v);
MKARRAY(0,1,VT_UI1); MKARRAY(0,1,VT_UI1);
hres = VariantChangeTypeEx(&v2, &v, 0, 0, VT_EMPTY); hres = VariantChangeTypeEx(&v2, &v, 0, 0, VT_EMPTY);
ok(hres == DISP_E_TYPEMISMATCH, "CTE VT_ARRAY|VT_UI1 returned %x\n", hres); ok(hres == DISP_E_TYPEMISMATCH, "CTE VT_ARRAY|VT_UI1 returned %x\n", hres);
VariantClear(&v);
} }