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:
parent
6b92d71ea1
commit
3438325e7d
@ -5434,7 +5434,7 @@ static ModelAnimation *LoadModelAnimationsGLTF(const char *fileName, unsigned in
|
||||
|
||||
cgltf_free(data);
|
||||
}
|
||||
|
||||
UnloadFileData(fileData);
|
||||
return animations;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user