gdiplus: Fix leak in test in todo_wine case.

This commit is contained in:
Vincent Povirk 2015-03-18 11:12:59 -05:00 committed by Alexandre Julliard
parent 20938661df
commit 2827a1a460
1 changed files with 2 additions and 1 deletions

View File

@ -4103,8 +4103,9 @@ static void test_image_format(void)
ok(status == OutOfMemory || broken(status == InvalidParameter) /* before win7 */,
"expected OutOfMemory, got %d\n", status);
else
{
expect(Ok, status);
if (status == Ok)
{
status = GdipGetImagePixelFormat(thumb, &format);
expect(Ok, status);
ok(format == PixelFormat32bppPARGB || broken(format != PixelFormat32bppPARGB) /* before win7 */,