Fix memory leak in UnloadModel()
This commit is contained in:
parent
9ace148917
commit
2b139c85a4
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user