1. reset default item in ~wxWindow (better to be safe)
2. blind fix for Motif compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -268,6 +268,12 @@ wxWindowBase::~wxWindowBase()
|
||||
if ( m_tooltip )
|
||||
delete m_tooltip;
|
||||
#endif // wxUSE_TOOLTIPS
|
||||
|
||||
// reset the dangling pointer our parent window may keep to us
|
||||
if ( m_parent && m_parent->GetDefaultItem() == this )
|
||||
{
|
||||
m_parent->SetDefaultItem(NULL);
|
||||
}
|
||||
}
|
||||
|
||||
bool wxWindowBase::Destroy()
|
||||
|
Reference in New Issue
Block a user