Merge pull request #773 from Skabunkel/master

Removed unnecessary if
This commit is contained in:
Ray 2019-02-28 18:36:13 +01:00 committed by GitHub
commit 5735f13fe5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -688,8 +688,7 @@ void UnloadFont(Font font)
{ {
for (int i = 0; i < font.charsCount; i++) for (int i = 0; i < font.charsCount; i++)
{ {
if(font.chars[i].data != NULL) free(font.chars[i].data);
free(font.chars[i].data);
} }
UnloadTexture(font.texture); UnloadTexture(font.texture);
free(font.chars); free(font.chars);