Module: wine Branch: master Commit: f9af62e36d19b4f5c70d9a739c6e9d2d3ca0e09c URL: http://source.winehq.org/git/wine.git/?a=commit;h=f9af62e36d19b4f5c70d9a739c...
Author: Nikolay Sivov bunglehead@gmail.com Date: Sat Dec 5 22:20:55 2009 +0300
gdiplus/tests: Free created iterator in tests.
---
dlls/gdiplus/tests/pathiterator.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/tests/pathiterator.c b/dlls/gdiplus/tests/pathiterator.c index eddb24e..3e1c287 100644 --- a/dlls/gdiplus/tests/pathiterator.c +++ b/dlls/gdiplus/tests/pathiterator.c @@ -36,8 +36,11 @@ static void test_constructor_destructor(void) /* NULL args */ stat = GdipCreatePathIter(NULL, NULL); expect(InvalidParameter, stat); + iter = NULL; stat = GdipCreatePathIter(&iter, NULL); expect(Ok, stat); + ok(iter != NULL, "Expected iterator to be created\n"); + GdipDeletePathIter(iter); stat = GdipCreatePathIter(NULL, path); expect(InvalidParameter, stat); stat = GdipDeletePathIter(NULL);