Commit ff95a69f authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

gdiplus/tests: Fix resource leaks in several tests.

A few tests initialized two GpGraphics objects, and only released one. These have been fixed by removing the redundant initialization.
parent 349337d7
......@@ -243,8 +243,6 @@ static void test_GdipDrawArc(void)
HDC hdc = GetDC(0);
/* make a graphics object and pen object */
status = GdipCreateFromHDC(hdc, &graphics);
expect(Ok, status);
ok(hdc != NULL, "Expected HDC to be initialized\n");
status = GdipCreateFromHDC(hdc, &graphics);
......@@ -289,8 +287,6 @@ static void test_GdipDrawArcI(void)
HDC hdc = GetDC(0);
/* make a graphics object and pen object */
status = GdipCreateFromHDC(hdc, &graphics);
expect(Ok, status);
ok(hdc != NULL, "Expected HDC to be initialized\n");
status = GdipCreateFromHDC(hdc, &graphics);
......@@ -335,8 +331,6 @@ static void test_GdipDrawBezierI(void)
HDC hdc = GetDC(0);
/* make a graphics object and pen object */
status = GdipCreateFromHDC(hdc, &graphics);
expect(Ok, status);
ok(hdc != NULL, "Expected HDC to be initialized\n");
status = GdipCreateFromHDC(hdc, &graphics);
......@@ -436,8 +430,6 @@ static void test_GdipDrawLineI(void)
HDC hdc = GetDC(0);
/* make a graphics object and pen object */
status = GdipCreateFromHDC(hdc, &graphics);
expect(Ok, status);
ok(hdc != NULL, "Expected HDC to be initialized\n");
status = GdipCreateFromHDC(hdc, &graphics);
......@@ -477,8 +469,6 @@ static void test_GdipDrawLinesI(void)
HDC hdc = GetDC(0);
/* make a graphics object and pen object */
status = GdipCreateFromHDC(hdc, &graphics);
expect(Ok, status);
ok(hdc != NULL, "Expected HDC to be initialized\n");
status = GdipCreateFromHDC(hdc, &graphics);
......
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