Commit c9706637 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

gdiplus/tests: Cleanup resources on error path in test_font_height_scaling (coverity).

parent e078c872
......@@ -3790,7 +3790,7 @@ static void test_font_height_scaling(void)
if (fabs(scale - 1.0) > 0.1)
{
win_skip("GdipGetRegionBounds is broken, scale %f (should be near 1.0)\n", scale);
return;
goto cleanup;
}
status = GdipScaleWorldTransform(graphics, 0.01, 0.01, MatrixOrderAppend);
......@@ -3893,6 +3893,7 @@ todo_wine
GdipDeleteFont(font);
}
cleanup:
status = GdipDeleteGraphics(graphics);
expect(Ok, status);
DeleteDC(hdc);
......
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