We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent facf34f commit abc6800Copy full SHA for abc6800
include/ModelAnimation.hpp
@@ -39,7 +39,11 @@ class ModelAnimation : public ::ModelAnimation {
39
static std::vector<ModelAnimation> Load(const std::string& fileName) {
40
int count = 0;
41
::ModelAnimation* modelAnimations = ::LoadModelAnimations(fileName.c_str(), &count);
42
- return std::vector<ModelAnimation>(modelAnimations, modelAnimations + count);
+ std::vector<ModelAnimation> mats(modelAnimations, modelAnimations + count);
43
+
44
+ RL_FREE(modelAnimations);
45
46
+ return mats;
47
}
48
49
GETTERSETTER(int, BoneCount, boneCount)
0 commit comments