mirror of
https://github.com/raysan5/raylib.git
synced 2026-06-05 03:14:12 +00:00
Fix memory leak in UnloadModel() (#5907)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user