Explorar o código

Merge pull request #773 from Skabunkel/master

Removed unnecessary if
Ray %!s(int64=6) %!d(string=hai) anos
pai
achega
5735f13fe5
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/text.c

+ 1 - 2
src/text.c

@@ -688,8 +688,7 @@ void UnloadFont(Font font)
     {
         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);
         free(font.chars);