From fd79b8191841a24ec60287b404edfb45b1936f38 Mon Sep 17 00:00:00 2001 From: Luis <113704180+LuisR385@users.noreply.github.com> Date: Fri, 5 Jun 2026 06:32:52 +0900 Subject: [PATCH] Fix memory leak in UnloadModel() (#5907) --- src/rmodels.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rmodels.c b/src/rmodels.c index 32ade139f..ee795dd26 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -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"); }