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
This commit is contained in:
Vadim Zeitlin
2011-12-24 15:43:14 +00:00
parent 7182483bf7
commit 8c167bb199

View File

@@ -41,7 +41,7 @@ public:
{
if ( array != m_array )
{
delete m_array;
delete [] m_array;
m_array = array;
}
}