X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45805ba32255e4115b2ddddc15a5db5720ecb7ba..4f61e22c77b1a7cb148f6567996d816f72ac854f:/src/common/zstream.cpp?ds=sidebyside diff --git a/src/common/zstream.cpp b/src/common/zstream.cpp index 29a7dfa23b..2636efd14b 100644 --- a/src/common/zstream.cpp +++ b/src/common/zstream.cpp @@ -33,10 +33,8 @@ // the user (who can define wxUSE_ZLIB_H_IN_PATH), we hardcode the path here #if defined(__WXMSW__) && !defined(__WX_SETUP_H__) && !defined(wxUSE_ZLIB_H_IN_PATH) #include "../zlib/zlib.h" -#elif defined(__WXMAC__) && defined(__UNIX__) - #include #else - #include + #include "zlib.h" #endif #define ZSTREAM_BUFFER_SIZE 1024 @@ -159,6 +157,7 @@ wxZlibOutputStream::~wxZlibOutputStream() } deflateEnd(m_deflate); + delete m_deflate; delete[] m_z_buffer; }