From 2b139c85a44b38a808d6c23e280fae4a9a8cc598 Mon Sep 17 00:00:00 2001 From: Luis Date: Fri, 5 Jun 2026 02:26:51 +0900 Subject: [PATCH] Fix memory leak in UnloadModel() --- 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"); }