FBX: fix memory leak, parsed TokenList never released. See #307.
parent
5ae010028b
commit
7e48c1cce9
|
@ -179,6 +179,8 @@ void FBXImporter::InternReadFile( const std::string& pFile,
|
||||||
|
|
||||||
// convert the FBX DOM to aiScene
|
// convert the FBX DOM to aiScene
|
||||||
ConvertToAssimpScene(pScene,doc);
|
ConvertToAssimpScene(pScene,doc);
|
||||||
|
|
||||||
|
std::for_each(tokens.begin(),tokens.end(),Util::delete_fun<Token>());
|
||||||
}
|
}
|
||||||
catch(std::exception&) {
|
catch(std::exception&) {
|
||||||
std::for_each(tokens.begin(),tokens.end(),Util::delete_fun<Token>());
|
std::for_each(tokens.begin(),tokens.end(),Util::delete_fun<Token>());
|
||||||
|
|
Loading…
Reference in New Issue