From: Vadim Zeitlin Date: Sat, 24 Dec 2011 15:43:14 +0000 (+0000) Subject: Fix fatal bug with deleting the old contents in wxScopedArray::reset(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8c167bb199fc017a4db5dd5bdaec648f51aa0d1f Fix fatal bug with deleting the old contents in wxScopedArray::reset(). "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 --- diff --git a/include/wx/scopedarray.h b/include/wx/scopedarray.h index 4175fcee62..d8bd2e7817 100644 --- a/include/wx/scopedarray.h +++ b/include/wx/scopedarray.h @@ -41,7 +41,7 @@ public: { if ( array != m_array ) { - delete m_array; + delete [] m_array; m_array = array; } }