mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 19:21:03 +00:00
font: Remove unnecessary null checks
These conditions are checked at the top of the function.
This commit is contained in:
parent
3f1a915caf
commit
f59135359e
@ -73,8 +73,8 @@ static void d3dfonts_w32_free_font(void *data)
|
||||
if (d3dfonts->font)
|
||||
d3dfonts->font->Release();
|
||||
d3dfonts->font = NULL;
|
||||
if (d3dfonts)
|
||||
free(d3dfonts);
|
||||
|
||||
free(d3dfonts);
|
||||
d3dfonts = NULL;
|
||||
}
|
||||
|
||||
|
@ -276,8 +276,7 @@ static void xdk360_free_font(void *data)
|
||||
if (m_xprResource.Initialized())
|
||||
m_xprResource.Destroy();
|
||||
|
||||
if (font)
|
||||
free(font);
|
||||
free(font);
|
||||
font = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user