瀏覽代碼

Close GZipFiles in the d'tor

Nils Maier 12 年之前
父節點
當前提交
6b7a51d5e0
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/GZipFile.cc

+ 1 - 0
src/GZipFile.cc

@@ -77,6 +77,7 @@ GZipFile::GZipFile(const char* filename, const char* mode)
 
 GZipFile::~GZipFile()
 {
+  close();
   free(buf_);
 }