Remove bogus delete[] on error path
mBuffer is a pointer inside a std::vector so don't try to delete[] it.
This commit is contained in:
@@ -156,7 +156,6 @@ void PLYImporter::InternReadFile( const std::string& pFile,
|
||||
}
|
||||
else
|
||||
{
|
||||
delete[] this->mBuffer;
|
||||
AI_DEBUG_INVALIDATE_PTR(this->mBuffer);
|
||||
throw DeadlyImportError( "Invalid .ply file: Missing format specification");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user