diff options
Diffstat (limited to 'src/text.c')
| -rw-r--r-- | src/text.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -684,6 +684,10 @@ void UnloadFont(Font font) // NOTE: Make sure spriteFont is not default font (fallback) if (font.texture.id != GetFontDefault().texture.id) { + for (int i = 0; i < font.charsCount; i++) + { + free(font.chars[i].data); + } UnloadTexture(font.texture); free(font.chars); |
