X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..c79510ca120b9b6d143c278dcf96b1403410121b:/src/common/zstream.cpp diff --git a/src/common/zstream.cpp b/src/common/zstream.cpp index cb2ba6c4fa..c293548a04 100644 --- a/src/common/zstream.cpp +++ b/src/common/zstream.cpp @@ -88,13 +88,13 @@ wxGzipClassFactory::wxGzipClassFactory() const wxChar * const * wxGzipClassFactory::GetProtocols(wxStreamProtocolType type) const { - static const wxChar *protos[] = + static const wxChar *protos[] = { wxT("gzip"), NULL }; - static const wxChar *mimes[] = + static const wxChar *mimes[] = { wxT("application/gzip"), wxT("application/x-gzip"), NULL }; - static const wxChar *encs[] = + static const wxChar *encs[] = { wxT("gzip"), NULL }; - static const wxChar *exts[] = + static const wxChar *exts[] = { wxT(".gz"), wxT(".gzip"), NULL }; static const wxChar *empty[] = { NULL }; @@ -335,11 +335,8 @@ bool wxZlibOutputStream::Close() { DoFlush(true); deflateEnd(m_deflate); - delete m_deflate; - - m_deflate = NULL; - delete[] m_z_buffer; - m_z_buffer = NULL; + wxDELETE(m_deflate); + wxDELETEA(m_z_buffer); return wxFilterOutputStream::Close() && IsOk(); }