From 808c5dbece015fd9183327a78e120d7b70811b29 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 2 Jul 2008 23:39:01 +0200 Subject: [PATCH] gdiplus: Remove redundant NULL check before GdipFree (Smatch). --- 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 98a4c43dc80..78de0a6ae88 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 93efbc4eb45..59a8d532177 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); } -- 2.11.4.GIT