Skip to content

Commit

Permalink
Update rmodels.c; free fileData for LoadModelAnimationsGLTF (#3065)
Browse files Browse the repository at this point in the history
fileData wasn't freed for LoadModelAnimationsGLTF causing a memory leak. Added UnloadFileData line, freeing it.
  • Loading branch information
crynux committed May 15, 2023
1 parent 6b92d71 commit 3438325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rmodels.c
Original file line number Diff line number Diff line change
Expand Up @@ -5434,7 +5434,7 @@ static ModelAnimation *LoadModelAnimationsGLTF(const char *fileName, unsigned in

cgltf_free(data);
}

UnloadFileData(fileData);
return animations;
}
#endif
Expand Down

0 comments on commit 3438325

Please sign in to comment.