Remove bogus delete[] on error path
mBuffer is a pointer inside a std::vector so don't try to delete[] it.pull/450/head
parent
0108d5b1f9
commit
95ad827277
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue