]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix fatal bug with deleting the old contents in wxScopedArray::reset().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Dec 2011 15:43:14 +0000 (15:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Dec 2011 15:43:14 +0000 (15:43 +0000)
"delete" was wrongly used instead of "delete[]".

Closes #13806.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/scopedarray.h

index 4175fcee62304a0ac966e966854b5ec597809a0a..d8bd2e78175fc21636dc46a36d59b9ee623ad22c 100644 (file)
@@ -41,7 +41,7 @@ public:
     {
         if ( array != m_array )
         {
-            delete m_array;
+            delete [] m_array;
             m_array = array;
         }
     }