backport: avoiding events during destruction, fixes #10855

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_9_0_BRANCH@60904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-06-05 22:38:48 +00:00
parent 3127510223
commit 3a5db1e7d2

View File

@@ -103,7 +103,10 @@ bool wxListBox::Create(
wxListBox::~wxListBox()
{
m_blockEvents = true;
FreeData();
m_blockEvents = false;
// make sure no native events get sent to a object in destruction
delete m_peer;
m_peer = NULL;