Commit 808c5dbe authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 4f77c29b
......@@ -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;
......
......@@ -190,7 +190,7 @@ static void test_fontfamily (void)
stat = GdipDeleteFontFamily(*family);
expect (Ok, stat);
if (family) GdipFree (family);
GdipFree (family);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment