Set m_window to NULL after destroying it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@26847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -235,7 +235,10 @@ void wxSizerItem::SetDimension( wxPoint pos, wxSize size )
|
||||
void wxSizerItem::DeleteWindows()
|
||||
{
|
||||
if (m_window)
|
||||
{
|
||||
m_window->Destroy();
|
||||
m_window = NULL;
|
||||
}
|
||||
|
||||
if (m_sizer)
|
||||
m_sizer->DeleteWindows();
|
||||
|
Reference in New Issue
Block a user