X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45805ba32255e4115b2ddddc15a5db5720ecb7ba..02cf6fdd858bfab06627734dd7ca1ccdd9866e9d:/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; }