Browse Source

Close GZipFiles in the d'tor

Nils Maier 12 năm trước cách đây
mục cha
commit
6b7a51d5e0
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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_);
 }