소스 검색

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

불러오는 중...
취소
저장