gdiplus: Remove redundant NULL check before GdipFree (Smatch).
This commit is contained in:
parent
4f77c29bcf
commit
808c5dbece
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue