X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/588066b7a39629e44bb39f1ab436b80f38c13f33..07158944d86fc3895c24a5a9848616405d3d91db:/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();