From 3438325e7d657e2eadd71226c147f9f0f6ce5f55 Mon Sep 17 00:00:00 2001 From: Crynux <43756150+crynux@users.noreply.github.com> Date: Mon, 15 May 2023 03:24:37 -0600 Subject: [PATCH] Update rmodels.c; free fileData for LoadModelAnimationsGLTF (#3065) fileData wasn't freed for LoadModelAnimationsGLTF causing a memory leak. Added UnloadFileData line, freeing it. --- src/rmodels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rmodels.c b/src/rmodels.c index 1aa045df293f..c4073eed335d 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -5434,7 +5434,7 @@ static ModelAnimation *LoadModelAnimationsGLTF(const char *fileName, unsigned in cgltf_free(data); } - + UnloadFileData(fileData); return animations; } #endif