gdiplus: Fix a memory leak in the tests.
Found by Valgrind.
This commit is contained in:
parent
70742d5e5a
commit
39dd4d25a4
|
@ -63,6 +63,7 @@ static void test_constructor_destructor(void)
|
|||
stat = GdipCreateCustomLineCap(path, NULL, LineCapFlat, 10.0, &custom);
|
||||
todo_wine expect(NotImplemented, stat);
|
||||
todo_wine ok(custom == NULL, "Expected a failure on creation\n");
|
||||
if(stat == Ok) GdipDeleteCustomLineCap(custom);
|
||||
|
||||
GdipDeletePath(path2);
|
||||
GdipDeletePath(path);
|
||||
|
|
Loading…
Reference in New Issue