Nikolay Sivov : gdiplus/tests: Free created iterator in tests.

Alexandre Julliard julliard at winehq.org
Mon Dec 7 10:26:15 CST 2009


Module: wine
Branch: master
Commit: f9af62e36d19b4f5c70d9a739c6e9d2d3ca0e09c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f9af62e36d19b4f5c70d9a739c6e9d2d3ca0e09c

Author: Nikolay Sivov <bunglehead at 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);




More information about the wine-cvs mailing list