]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/zstream.cpp
Added code to handle SQLSERVER, ACCESS, and MSDE allowing spaces in table names and...
[wxWidgets.git] / src / common / zstream.cpp
index 29a7dfa23be4705492c86f675184b1fd8a0fdee7..2cfec910822662c07e8a2d8ef4b9a65fb1154963 100644 (file)
@@ -34,9 +34,9 @@
 #if defined(__WXMSW__) && !defined(__WX_SETUP_H__) && !defined(wxUSE_ZLIB_H_IN_PATH)
    #include "../zlib/zlib.h"
 #elif defined(__WXMAC__) && defined(__UNIX__)
-   #include <Zip/zlib.h>
+   #include <Kernel/net/zlib.h>
 #else
-   #include <zlib.h>
+   #include "zlib.h"
 #endif
 
 #define ZSTREAM_BUFFER_SIZE 1024
@@ -159,6 +159,7 @@ wxZlibOutputStream::~wxZlibOutputStream()
   }
 
   deflateEnd(m_deflate);
+  delete m_deflate;
 
   delete[] m_z_buffer;
 }