Module: wine Branch: master Commit: c97066370cc7a1fbf6d276f69dc311ae5538066c URL: http://source.winehq.org/git/wine.git/?a=commit;h=c97066370cc7a1fbf6d276f69d...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Tue Oct 30 08:55:37 2012 +0100
gdiplus/tests: Cleanup resources on error path in test_font_height_scaling (coverity).
---
dlls/gdiplus/tests/graphics.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/tests/graphics.c b/dlls/gdiplus/tests/graphics.c index 4ed13ea..5fc1626 100644 --- a/dlls/gdiplus/tests/graphics.c +++ b/dlls/gdiplus/tests/graphics.c @@ -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);