gdiplus: Remove a useless comparison.
Vincent Povirk
madewokherd at gmail.com
Mon Mar 24 14:25:48 CDT 2014
These variables were separately allocated, so they will never be
equal. I think the idea was to optimize if we're not warping the
image, but that optimization never existed in Wine.
-------------- next part --------------
From 39b2c28e2c2252e6a1baa07c67342c9a6e8d7e39 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Mon, 24 Mar 2014 14:09:04 -0500
Subject: [PATCH 2/2] gdiplus: Remove a useless comparison.
---
dlls/gdiplus/graphics.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 8f0ea8c..56d785e 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2941,8 +2941,7 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
if (stat != Ok)
{
- if (src_data != dst_data)
- GdipFree(src_data);
+ GdipFree(src_data);
GdipFree(dst_data);
return stat;
}
--
1.8.3.2
More information about the wine-patches
mailing list