font: Remove unnecessary null checks

These conditions are checked at the top of the function.
This commit is contained in:
Lioncash 2015-04-02 11:18:08 -04:00
parent 3f1a915caf
commit f59135359e
2 changed files with 3 additions and 4 deletions

View File

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

View File

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