mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-12 06:18:14 +00:00
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:
@@ -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);
|
else TraceLog(LOG_WARNING, "Character could not be packed: %i", i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(rects);
|
||||||
free(nodes);
|
free(nodes);
|
||||||
free(context);
|
free(context);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user