x-parser: fix the crash.

This commit is contained in:
Kim Kulling
2018-02-06 23:59:46 +01:00
parent 495ae70cc5
commit 57c1fe5954
2 changed files with 153 additions and 189 deletions

View File

@@ -1460,7 +1460,6 @@ aiColor3D XFileParser::ReadRGB()
// ------------------------------------------------------------------------------------------------
// Throws an exception with a line number and the given text.
AI_WONT_RETURN void XFileParser::ThrowException( const std::string& pText) {
delete mScene;
if ( mIsBinaryFormat ) {
throw DeadlyImportError( pText );
} else {