diff --git a/code/FBXImporter.cpp b/code/FBXImporter.cpp index 56e99063b..dfbe5dbd0 100644 --- a/code/FBXImporter.cpp +++ b/code/FBXImporter.cpp @@ -179,6 +179,8 @@ void FBXImporter::InternReadFile( const std::string& pFile, // convert the FBX DOM to aiScene ConvertToAssimpScene(pScene,doc); + + std::for_each(tokens.begin(),tokens.end(),Util::delete_fun()); } catch(std::exception&) { std::for_each(tokens.begin(),tokens.end(),Util::delete_fun());