Skip to content

use RL_MALLOC in stb_truetype#5139

Merged
raysan5 merged 1 commit intoraysan5:masterfrom
Siltnamis:stbtt_rl_malloc
Aug 23, 2025
Merged

use RL_MALLOC in stb_truetype#5139
raysan5 merged 1 commit intoraysan5:masterfrom
Siltnamis:stbtt_rl_malloc

Conversation

@Siltnamis
Copy link

Some allocations that were made by STBTT_malloc are being deallocated with RL_FREE in LoadFontFromMemory. This is an issue if user defines custom RL allocation functions because he is asked to deallocate something he never allocated.

@raysan5 raysan5 merged commit 9cc9f3b into raysan5:master Aug 23, 2025
@raysan5
Copy link
Owner

raysan5 commented Aug 23, 2025

@Siltnamis Good catch! Thanks for the review!

@Siltnamis Siltnamis deleted the stbtt_rl_malloc branch August 23, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants