X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45805ba32255e4115b2ddddc15a5db5720ecb7ba..25db1b74f1264c27bbf2e5fcc9f3a19ccc56d5fc:/src/common/zstream.cpp diff --git a/src/common/zstream.cpp b/src/common/zstream.cpp index 29a7dfa23b..5142f077b6 100644 --- a/src/common/zstream.cpp +++ b/src/common/zstream.cpp @@ -34,7 +34,7 @@ #if defined(__WXMSW__) && !defined(__WX_SETUP_H__) && !defined(wxUSE_ZLIB_H_IN_PATH) #include "../zlib/zlib.h" #elif defined(__WXMAC__) && defined(__UNIX__) - #include + #include #else #include #endif @@ -159,6 +159,7 @@ wxZlibOutputStream::~wxZlibOutputStream() } deflateEnd(m_deflate); + delete m_deflate; delete[] m_z_buffer; }