gdiplus: Fix a memory leak in the tests.

Found by Valgrind.
This commit is contained in:
Huw Davies 2009-12-15 11:35:19 +00:00 committed by Alexandre Julliard
parent 70742d5e5a
commit 39dd4d25a4
1 changed files with 1 additions and 0 deletions

View File

@ -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);