Fix memory leak in UnloadModel() (#5907)

This commit is contained in:
Luis
2026-06-05 06:32:52 +09:00
committed by GitHub
parent 9ace148917
commit fd79b81918

View File

@@ -1222,6 +1222,8 @@ void UnloadModel(Model model)
// Unload animation data
RL_FREE(model.skeleton.bones);
RL_FREE(model.skeleton.bindPose);
RL_FREE(model.currentPose);
RL_FREE(model.boneMatrices);
TRACELOG(LOG_INFO, "MODEL: Unloaded model (and meshes) from RAM and VRAM");
}