Explorar el Código

Close GZipFiles in the d'tor

Nils Maier hace 12 años
padre
commit
6b7a51d5e0
Se han modificado 1 ficheros con 1 adiciones y 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_);
 }