From 2e85922c96bbda1b13538c32f2ecc0989946a0c8 Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Wed, 3 Aug 2005 19:25:52 +0000 Subject: [PATCH] Fix deletes that should be delete[] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/zipstrm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/zipstrm.cpp b/src/common/zipstrm.cpp index 76028b1ce5..b29a18371b 100644 --- a/src/common/zipstrm.cpp +++ b/src/common/zipstrm.cpp @@ -485,7 +485,7 @@ public: wxZipMemory *Unique(size_t size); private: - ~wxZipMemory() { delete m_data; } + ~wxZipMemory() { delete [] m_data; } char *m_data; size_t m_size; @@ -505,7 +505,7 @@ wxZipMemory *wxZipMemory::Unique(size_t size) } if (zm->m_capacity < size) { - delete zm->m_data; + delete [] zm->m_data; zm->m_data = new char[size]; zm->m_capacity = size; }