]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/zipstrm.cpp
Better fix for 'int i' used twice in the same block.
[wxWidgets.git] / 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;
     }