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:
@@ -103,7 +103,10 @@ bool wxListBox::Create(
|
|||||||
|
|
||||||
wxListBox::~wxListBox()
|
wxListBox::~wxListBox()
|
||||||
{
|
{
|
||||||
|
m_blockEvents = true;
|
||||||
FreeData();
|
FreeData();
|
||||||
|
m_blockEvents = false;
|
||||||
|
|
||||||
// make sure no native events get sent to a object in destruction
|
// make sure no native events get sent to a object in destruction
|
||||||
delete m_peer;
|
delete m_peer;
|
||||||
m_peer = NULL;
|
m_peer = NULL;
|
||||||
|
Reference in New Issue
Block a user