Skip to content

Commit

Permalink
Fix memory leak in Collada importer
Browse files Browse the repository at this point in the history
Affects Collada files with morph Controller Elements.
  • Loading branch information
JonAllee committed Feb 13, 2017
1 parent a75fa44 commit 5deb441
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/assimp/anim.h
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ struct aiAnimation {
for( unsigned int a = 0; a < mNumMorphMeshChannels; a++) {
delete mMorphMeshChannels[a];
}

delete [] mMorphMeshChannels;
}
}
#endif // __cplusplus
Expand Down

0 comments on commit 5deb441

Please sign in to comment.