Skip to content

Fix leaks in LoadIQM() and LoadModelAnimationsIQM()#4649

Merged
raysan5 merged 1 commit into
raysan5:masterfrom
peter15914:fix_leak_loadiqm
Dec 29, 2024
Merged

Fix leaks in LoadIQM() and LoadModelAnimationsIQM()#4649
raysan5 merged 1 commit into
raysan5:masterfrom
peter15914:fix_leak_loadiqm

Conversation

@peter15914
Copy link
Copy Markdown
Contributor

Add calls to UnloadFileData() before return in cases of invalid IQM file.

Add calls to UnloadFileData() before return in cases of invalid IQM file.
@peter15914 peter15914 marked this pull request as ready for review December 29, 2024 17:40
@raysan5 raysan5 merged commit d1315e8 into raysan5:master Dec 29, 2024
@raysan5
Copy link
Copy Markdown
Owner

raysan5 commented Dec 29, 2024

@peter15914 Good catch! Thanks for the review! This is the reason I try to avoid the early-returns in raylib, but this function is not doing it... maybe reviewing it...

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