Преглед изворни кода

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_);
 }