]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix deletes that should be delete[]
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Wed, 3 Aug 2005 19:25:52 +0000 (19:25 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Wed, 3 Aug 2005 19:25:52 +0000 (19:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/zipstrm.cpp

index 76028b1ce55cc37e352dc4e87c11a1762729900e..b29a18371bb994e44849f0e8dafce6c1097d0baa 100644 (file)
@@ -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;
     }