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:
@@ -41,7 +41,7 @@ public:
|
|||||||
{
|
{
|
||||||
if ( array != m_array )
|
if ( array != m_array )
|
||||||
{
|
{
|
||||||
delete m_array;
|
delete [] m_array;
|
||||||
m_array = array;
|
m_array = array;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user