Remove bogus delete[] on error path

mBuffer is a pointer inside a std::vector so don't try to delete[] it.
pull/450/head
Turo Lamminen 2015-01-28 00:44:26 +02:00
parent 0108d5b1f9
commit 95ad827277
1 changed files with 0 additions and 1 deletions

View File

@ -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");
}