diff options
| author | Crynux <[email protected]> | 2023-05-15 03:24:37 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-15 11:24:37 +0200 |
| commit | 3438325e7d657e2eadd71226c147f9f0f6ce5f55 (patch) | |
| tree | 493e3cf4669853c286599af0fb73e83a10dc67b3 | |
| parent | 6b92d71ea1c4e3072b26f25e7b8bd1d1aa8e781f (diff) | |
| download | raylib-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.
| -rw-r--r-- | src/rmodels.c | 2 |
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 |
