ソースを参照

Fixes memory leak in text.c

GenImageFontAtlas() allocates an array of stbrp_rect for the packing functions, but it never frees them.
pull/659/head
noshbar 6年前
コミット
ec6b21bd91
1個のファイルの変更1行の追加0行の削除
  1. +1
    -0
      src/text.c

+ 1
- 0
src/text.c ファイルの表示

@ -527,6 +527,7 @@ Image GenImageFontAtlas(CharInfo *chars, int charsCount, int fontSize, int paddi
else TraceLog(LOG_WARNING, "Character could not be packed: %i", i);
}
free(rects);
free(nodes);
free(context);
}

読み込み中…
キャンセル
保存