Update rmodels.c; free fileData for LoadModelAnimationsGLTF (#3065)

fileData wasn't freed for LoadModelAnimationsGLTF causing a memory leak. Added UnloadFileData line, freeing it.
This commit is contained in:
Crynux 2023-05-15 03:24:37 -06:00 committed by GitHub
parent 6b92d71ea1
commit 3438325e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5434,7 +5434,7 @@ static ModelAnimation *LoadModelAnimationsGLTF(const char *fileName, unsigned in
cgltf_free(data);
}
UnloadFileData(fileData);
return animations;
}
#endif