浏览代码

Remove bogus delete[] on error path

mBuffer is a pointer inside a std::vector so don't try to delete[] it.
Turo Lamminen 10 年之前
父节点
当前提交
95ad827277
共有 1 个文件被更改,包括 0 次插入1 次删除
  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");
 	}