]> git.saurik.com Git - wxWidgets.git/commitdiff
Set m_window to NULL after destroying it
authorRobin Dunn <robin@alldunn.com>
Sat, 17 Apr 2004 22:40:23 +0000 (22:40 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 17 Apr 2004 22:40:23 +0000 (22:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/sizer.cpp

index 1d9073891ff707dcd7ba0326e884f4417c5801d2..062e2767d59c4c48bf91b8765a476cbb60165c1d 100644 (file)
@@ -280,7 +280,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();