OpenGEXImporter: Fix IOStream leak

pull/1471/head
Turo Lamminen 2017-10-05 12:38:44 +03:00
parent b6d2b91799
commit e7ff7b167f
1 changed files with 1 additions and 0 deletions

View File

@ -307,6 +307,7 @@ void OpenGEXImporter::InternReadFile( const std::string &filename, aiScene *pSce
std::vector<char> buffer;
TextFileToBuffer( file, buffer );
pIOHandler->Close( file );
OpenDDLParser myParser;
myParser.setBuffer( &buffer[ 0 ], buffer.size() );