From c18a07e47f514866c7b8cc57676611865de14415 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sat, 24 Feb 2018 08:43:36 +0100 Subject: [PATCH] FBX Import: Properly clean up post_nodes_chain in case of exception. --- code/FBXConverter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index 8aac70a0f..a948a7abf 100644 --- a/code/FBXConverter.cpp +++ b/code/FBXConverter.cpp @@ -265,6 +265,7 @@ void Converter::ConvertNodes( uint64_t id, aiNode& parent, const aiMatrix4x4& pa Util::delete_fun deleter; std::for_each( nodes.begin(), nodes.end(), deleter ); std::for_each( nodes_chain.begin(), nodes_chain.end(), deleter ); + std::for_each( post_nodes_chain.begin(), post_nodes_chain.end(), deleter ); } }