Explorar el Código

Remove bogus delete[] on error path

mBuffer is a pointer inside a std::vector so don't try to delete[] it.
Turo Lamminen hace 11 años
padre
commit
95ad827277
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      code/PlyLoader.cpp

+ 0 - 1
code/PlyLoader.cpp

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