diff options
| author | Skabunkel <> | 2019-02-24 00:13:50 +0100 |
|---|---|---|
| committer | Skabunkel <> | 2019-02-24 00:13:50 +0100 |
| commit | 795c5e949d18b8ae4753cd95ad1aa96b4f399c60 (patch) | |
| tree | c7c3664c29abe34a381a6dca8f402b14702ec8b3 /src/text.c | |
| parent | 854e5d2f7efff4fbd661a47825b8d1e3d70b4fa3 (diff) | |
| download | raylib-795c5e949d18b8ae4753cd95ad1aa96b4f399c60.tar.gz raylib-795c5e949d18b8ae4753cd95ad1aa96b4f399c60.zip | |
#764 - Quick fix that clears alot of memory, there seems to be more hiding somewhere else.
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); |
