瀏覽代碼

#764 - Quick fix that clears alot of memory, there seems to be more hiding somewhere else.

pull/765/head
Skabunkel 5 年之前
父節點
當前提交
795c5e949d
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      src/text.c

+ 4
- 0
src/text.c 查看文件

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

Loading…
取消
儲存