Procházet zdrojové kódy

Close GZipFiles in the d'tor

Nils Maier před 12 roky
rodič
revize
6b7a51d5e0
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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_);
 }