]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/listbox_osx.cpp
Converted wxVariant to use wxObject's reference counting facilities. Should make...
[wxWidgets.git] / 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;