From 8c167bb199fc017a4db5dd5bdaec648f51aa0d1f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 24 Dec 2011 15:43:14 +0000 Subject: [PATCH] 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 --- include/wx/scopedarray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.45.2