From 9ea83d348598d8a465e890264a137d3200223077 Mon Sep 17 00:00:00 2001 From: Crynux <43756150+crynux@users.noreply.github.com> Date: Sun, 14 May 2023 10:39:37 -0600 Subject: [PATCH] Update rmodels.c; free fileData for LoadModelAnimationsGLTF 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