X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eb2a7883df16d45e476efd12d601b56e0ef1429f..f925e7b4f3d017b33749bd23a64592c1985e8f98:/src/common/sizer.cpp diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index 1d9073891f..062e2767d5 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -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();