]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/mdi.cpp
Highly experimental, unstable code (for determining the
[wxWidgets.git] / src / msw / mdi.cpp
index 25cf16bbce08f8028320d29bde4bde60e584df85..399272c58b86e82e67bb466ecb639fb9e59916e4 100644 (file)
@@ -230,6 +230,7 @@ wxMDIParentFrame::~wxMDIParentFrame()
     DestroyChildren();
     // already delete by DestroyChildren()
     m_frameToolBar = NULL;
+    m_frameStatusBar = NULL;
 
     // ::DestroyMenu((HMENU)m_windowMenu);
     if (m_windowMenu)
@@ -704,6 +705,12 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent,
 
 wxMDIChildFrame::~wxMDIChildFrame()
 {
+    DestroyChildren();
+
+    // already delete by DestroyChildren()
+    m_frameToolBar = NULL;
+    m_frameStatusBar = NULL;
+
     MSWDestroyWindow();
 }