Module: wine Branch: master Commit: 39dd4d25a47850bc13fe9ab5e579b8f503e9e947 URL: http://source.winehq.org/git/wine.git/?a=commit;h=39dd4d25a47850bc13fe9ab5e5...
Author: Huw Davies huw@codeweavers.com Date: Tue Dec 15 11:35:19 2009 +0000
gdiplus: Fix a memory leak in the tests.
Found by Valgrind.
---
dlls/gdiplus/tests/customlinecap.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/tests/customlinecap.c b/dlls/gdiplus/tests/customlinecap.c index 7aa8dc4..218e46d 100644 --- a/dlls/gdiplus/tests/customlinecap.c +++ b/dlls/gdiplus/tests/customlinecap.c @@ -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);