From: Stefan Csomor Date: Fri, 5 Jun 2009 21:08:08 +0000 (+0000) Subject: avoiding events during destruction, fixes #10855 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7a21d83c54aac1ee558ba84b373c67f9a6545015 avoiding events during destruction, fixes #10855 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/listbox_osx.cpp b/src/osx/listbox_osx.cpp index 73ddffafbe..fc3251897f 100644 --- a/src/osx/listbox_osx.cpp +++ b/src/osx/listbox_osx.cpp @@ -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;