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