diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 25b5282c7e..399272c58b 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -705,6 +705,12 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, wxMDIChildFrame::~wxMDIChildFrame() { + DestroyChildren(); + + // already delete by DestroyChildren() + m_frameToolBar = NULL; + m_frameStatusBar = NULL; + MSWDestroyWindow(); }