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

pull/321/head
Alexander Gessler 2014-07-13 14:11:58 +02:00
parent 5ae010028b
commit 7e48c1cce9
1 changed files with 2 additions and 0 deletions

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>());