gdiplus: Remove redundant NULL check before GdipFree (Smatch).

This commit is contained in:
Michael Stefaniuc 2008-07-02 23:39:01 +02:00 committed by Alexandre Julliard
parent 4f77c29bcf
commit 808c5dbece
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -190,7 +190,7 @@ static void test_fontfamily (void)
stat = GdipDeleteFontFamily(*family);
expect (Ok, stat);
if (family) GdipFree (family);
GdipFree (family);
}