X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/588066b7a39629e44bb39f1ab436b80f38c13f33..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/include/wx/zstream.h diff --git a/include/wx/zstream.h b/include/wx/zstream.h index 1723d93702..16d43212e6 100644 --- a/include/wx/zstream.h +++ b/include/wx/zstream.h @@ -69,9 +69,10 @@ class WXDLLIMPEXP_BASE wxZlibInputStream: public wxFilterInputStream { class WXDLLIMPEXP_BASE wxZlibOutputStream: public wxFilterOutputStream { public: wxZlibOutputStream(wxOutputStream& stream, int level = -1, int flags = wxZLIB_ZLIB); - virtual ~wxZlibOutputStream(); + virtual ~wxZlibOutputStream() { Close(); } void Sync() { DoFlush(false); } + bool Close(); wxFileOffset GetLength() const { return m_pos; } static bool CanHandleGZip();