From 5b1d9b750e756837e3b34dbdcb548e7bbd2bd8ba Mon Sep 17 00:00:00 2001 From: Shifu Chen Date: Fri, 27 Jul 2018 15:55:02 +0800 Subject: [PATCH] flush and close out stream --- src/common.h | 2 +- src/writer.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common.h b/src/common.h index cebf899..c86c9f9 100644 --- a/src/common.h +++ b/src/common.h @@ -1,7 +1,7 @@ #ifndef COMMON_H #define COMMON_H -#define VERSION_NUM "0.4.0" +#define VERSION_NUM "0.5.0" #define _DEBUG false diff --git a/src/writer.cpp b/src/writer.cpp index 21a1979..4c3bd6e 100644 --- a/src/writer.cpp +++ b/src/writer.cpp @@ -16,14 +16,14 @@ Writer::Writer(ofstream* stream) { mZipFile = NULL; mZipped = false; mOutStream = stream; - haveToClose = false; + haveToClose = true; } Writer::Writer(gzFile gzfile) { mOutStream = NULL; mZipFile = gzfile; mZipped = true; - haveToClose = false; + haveToClose = true; } Writer::~Writer(){