diff options
| author | noshbar <noshbar@gmail.com> | 2018-10-10 22:41:20 +0200 |
|---|---|---|
| committer | noshbar <noshbar@gmail.com> | 2018-10-10 22:41:20 +0200 |
| commit | ec6b21bd91b72650c98ac3f76059a72f274ccb60 (patch) | |
| tree | 57384a4670a32c3fc53a98fb49fe006a50ea5e5b /src/text.c | |
| parent | ccaf462cbf4d56886372b720238ad8aa9718ad06 (diff) | |
| download | raylib-ec6b21bd91b72650c98ac3f76059a72f274ccb60.tar.gz raylib-ec6b21bd91b72650c98ac3f76059a72f274ccb60.zip | |
Fixes memory leak in text.c
GenImageFontAtlas() allocates an array of stbrp_rect for the packing functions, but it never frees them.
Diffstat (limited to 'src/text.c')
| -rw-r--r-- | src/text.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |
