Commit f9af62e3 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdiplus/tests: Free created iterator in tests.

parent 25260e60
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment