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

This commit is contained in:
Frédéric Delanoy 2012-10-30 08:55:37 +01:00 committed by Alexandre Julliard
parent e078c872a0
commit c97066370c

View File

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