From 25ae9fb8cad420fffcf8c6307fdce771af90447a Mon Sep 17 00:00:00 2001 From: Alex Bligh Date: Thu, 6 Jul 2006 19:19:04 +0000 Subject: [PATCH] wxComboCtrlBase: Fix SEGV due to double deletion where SetPopupControl is called twice after lazy creation of the popup, the first deleting m_popupExtraHandler and the second attempting to delete it a second time. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/combocmn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/combocmn.cpp b/src/common/combocmn.cpp index b27b6043e7..e2a0fd70c3 100644 --- a/src/common/combocmn.cpp +++ b/src/common/combocmn.cpp @@ -1562,6 +1562,7 @@ void wxComboCtrlBase::DestroyPopup() if ( m_winPopup ) m_winPopup->Destroy(); + m_popupExtraHandler = (wxEvtHandler*) NULL; m_popupInterface = (wxComboPopup*) NULL; m_winPopup = (wxWindow*) NULL; m_popup = (wxWindow*) NULL;