Skip to content

[rmodels] Fix memory leak in LoadModelAnimations() - #6449

Merged
raysan5 merged 1 commit into
raysan5:masterfrom
marinelay:fix-gltf-anim-buffers-leak
Nov 24, 2026
Merged

raysan5 merged 1 commit into
raysan5:masterfrom
marinelay:fix-gltf-anim-buffers-leak

Conversation

@marinelay

Copy link
Copy Markdown
Contributor

Fixes #6446.

Free the glTF data also when cgltf_load_buffers() fails.

@kimkulling kimkulling left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine for me.

@raysan5
raysan5 merged commit dd8e749 into raysan5:master Nov 24, 2026
@raysan5

raysan5 commented Nov 24, 2026

Copy link
Copy Markdown
Owner

@marinelay thanks for the fix!
@kimkulling thanks for the review!

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.

[rmodels] LoadModelAnimations() leaks the glTF document when a buffer fails to load

3 participants