Explorar o código

Close GZipFiles in the d'tor

Nils Maier %!s(int64=12) %!d(string=hai) anos
pai
achega
6b7a51d5e0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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_);
 }