summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorCrynux <[email protected]>2023-05-15 03:24:37 -0600
committerGitHub <[email protected]>2023-05-15 11:24:37 +0200
commit3438325e7d657e2eadd71226c147f9f0f6ce5f55 (patch)
tree493e3cf4669853c286599af0fb73e83a10dc67b3 /src
parent6b92d71ea1c4e3072b26f25e7b8bd1d1aa8e781f (diff)
downloadraylib-3438325e7d657e2eadd71226c147f9f0f6ce5f55.tar.gz
raylib-3438325e7d657e2eadd71226c147f9f0f6ce5f55.zip
Update rmodels.c; free fileData for LoadModelAnimationsGLTF (#3065)
fileData wasn't freed for LoadModelAnimationsGLTF causing a memory leak. Added UnloadFileData line, freeing it.
Diffstat (limited to 'src')
-rw-r--r--src/rmodels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rmodels.c b/src/rmodels.c
index 1aa045df..c4073eed 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