gdiplus/tests: Fix region leak (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0e7fa90068
commit
371c43550c
|
@ -147,6 +147,8 @@ static void test_region_data(DWORD *data, UINT size, INT line)
|
||||||
/* some Windows versions fail to properly clear the aligned DWORD */
|
/* some Windows versions fail to properly clear the aligned DWORD */
|
||||||
ok_(__FILE__, line)(data[size - 1] == buf[size - 1] || broken(data[size - 1] != buf[size - 1]),
|
ok_(__FILE__, line)(data[size - 1] == buf[size - 1] || broken(data[size - 1] != buf[size - 1]),
|
||||||
"off %u: %#x != %#x\n", size - 1, data[size - 1], buf[size - 1]);
|
"off %u: %#x != %#x\n", size - 1, data[size - 1], buf[size - 1]);
|
||||||
|
|
||||||
|
GdipDeleteRegion(region);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_getregiondata(void)
|
static void test_getregiondata(void)
|
||||||
|
|
Loading…
Reference in New Issue