Skip to content

Fix memory leak in LoadGLTF when model has no bones#5629

Open
victorberdugo1 wants to merge 1 commit intoraysan5:masterfrom
victorberdugo1:fix-gltf-memory-leak
Open

Fix memory leak in LoadGLTF when model has no bones#5629
victorberdugo1 wants to merge 1 commit intoraysan5:masterfrom
victorberdugo1:fix-gltf-memory-leak

Conversation

@victorberdugo1
Copy link

Fix memory leak in LoadGLTF for models without skeletal animation

currentPose and boneMatrices are allocated but never freed when
boneCount == 0, causing an 18-byte leak detected with LeakSanitizer on Linux.

Also fixes unreachable code and missing cleanup in the Draco early-exit path.

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.

1 participant