]> git.saurik.com Git - wxWidgets.git/commitdiff
avoiding events during destruction, fixes #10855
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 5 Jun 2009 21:08:08 +0000 (21:08 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 5 Jun 2009 21:08:08 +0000 (21:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/listbox_osx.cpp

index 73ddffafbeaa24f7ec3d0a3438def74f1e4508b4..fc3251897f8def6ab12df4d863e48eb42f1da27f 100644 (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;