Fixes memory leak in text.c

GenImageFontAtlas() allocates an array of stbrp_rect for the packing functions, but it never frees them.
This commit is contained in:
noshbar 2018-10-10 22:41:20 +02:00
parent ccaf462cbf
commit ec6b21bd91

View File

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