瀏覽代碼

Removal of null check

Removed the redundant check for NULL which is already handled by using
delete
eissajamil@gmail.com 10 年之前
父節點
當前提交
914605c4dc
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/google/protobuf/io/gzip_stream.cc

+ 1 - 3
src/google/protobuf/io/gzip_stream.cc

@@ -241,9 +241,7 @@ void GzipOutputStream::Init(ZeroCopyOutputStream* sub_stream,
 
 GzipOutputStream::~GzipOutputStream() {
   Close();
-  if (input_buffer_ != NULL) {
-    operator delete(input_buffer_);
-  }
+  operator delete(input_buffer_);
 }
 
 // private