FBX: fix memory leak, parsed TokenList never released. See #307.

This commit is contained in:
Alexander Gessler
2014-07-13 14:11:58 +02:00
parent 5ae010028b
commit 7e48c1cce9

View File

@@ -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<Token>());
}
catch(std::exception&) {
std::for_each(tokens.begin(),tokens.end(),Util::delete_fun<Token>());