OpenGEXImporter: Fix IOStream leak

pull/1477/head
Turo Lamminen 2017-10-05 12:38:44 +03:00
parent 22b55d01a2
commit 775f984d99
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() );