gdiplus/tests: Free created iterator in tests.

This commit is contained in:
Nikolay Sivov 2009-12-05 22:20:55 +03:00 committed by Alexandre Julliard
parent 25260e601c
commit f9af62e36d

View file

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