Vincent Povirk : gdiplus: Fix leak in test in todo_wine case.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Mar 19 09:59:02 CDT 2015


Module: wine
Branch: master
Commit: 2827a1a460a509d4b91f76d822295ec3a1a9a4d4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2827a1a460a509d4b91f76d822295ec3a1a9a4d4

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Wed Mar 18 11:12:59 2015 -0500

gdiplus: Fix leak in test in todo_wine case.

---

 dlls/gdiplus/tests/image.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c
index 68a06c4..63fc96e 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -4103,8 +4103,9 @@ static void test_image_format(void)
             ok(status == OutOfMemory || broken(status == InvalidParameter) /* before win7 */,
                "expected OutOfMemory, got %d\n", status);
         else
-        {
             expect(Ok, status);
+        if (status == Ok)
+        {
             status = GdipGetImagePixelFormat(thumb, &format);
             expect(Ok, status);
             ok(format == PixelFormat32bppPARGB || broken(format != PixelFormat32bppPARGB) /* before win7 */,




More information about the wine-cvs mailing list