gdiplus/tests: Delete graphics object on error path (coverity)

Frédéric Delanoy frederic.delanoy at gmail.com
Sat Oct 27 12:41:43 CDT 2012


CID 739898
---
 dlls/gdiplus/tests/graphics.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/gdiplus/tests/graphics.c b/dlls/gdiplus/tests/graphics.c
index 4ed13ea..abafbdc 100644
--- a/dlls/gdiplus/tests/graphics.c
+++ b/dlls/gdiplus/tests/graphics.c
@@ -3790,6 +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);
+        GdipDeleteGraphics(graphics);
         return;
     }
 
-- 
1.8.0




More information about the wine-patches mailing list