gdiplus: Remove redundant NULL check before GdipFree (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Wed Jul 2 16:39:01 CDT 2008
---
Resend due to merge conflict with the previous version.
dlls/gdiplus/font.c | 2 +-
dlls/gdiplus/tests/font.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c
index 98a4c43..78de0a6 100644
--- a/dlls/gdiplus/font.c
+++ b/dlls/gdiplus/font.c
@@ -445,7 +445,7 @@ GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily *FontFamily)
return InvalidParameter;
TRACE("Deleting %p (%s)\n", FontFamily, debugstr_w(FontFamily->FamilyName));
- if (FontFamily->FamilyName) GdipFree (FontFamily->FamilyName);
+ GdipFree (FontFamily->FamilyName);
GdipFree (FontFamily);
return Ok;
diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c
index 93efbc4..59a8d53 100644
--- a/dlls/gdiplus/tests/font.c
+++ b/dlls/gdiplus/tests/font.c
@@ -190,7 +190,7 @@ static void test_fontfamily (void)
stat = GdipDeleteFontFamily(*family);
expect (Ok, stat);
- if (family) GdipFree (family);
+ GdipFree (family);
}
--
1.5.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080702/2d0f0da3/attachment.pgp
More information about the wine-patches
mailing list