fix irrreader leak.

This commit is contained in:
Kim Kulling
2020-01-16 20:25:47 +01:00
parent 10ff2d94f7
commit 40d882af4f
16 changed files with 126 additions and 147 deletions
+3 -1
View File
@@ -1564,8 +1564,10 @@ namespace Assimp {
bone_map.clear();
}
catch (std::exception&e) {
catch (std::exception &e) {
FBXImporter::LogError(e.what());
std::for_each(bones.begin(), bones.end(), Util::delete_fun<aiBone>());
throw;
}