]> git.saurik.com Git - wxWidgets.git/commitdiff
Possible fix for DestroyWindow message in MDI apps (call DestroyChildren in destructor)
authorJulian Smart <julian@anthemion.co.uk>
Wed, 15 Mar 2000 00:22:33 +0000 (00:22 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 15 Mar 2000 00:22:33 +0000 (00:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/mdi.cpp

index 25b5282c7e816f8c9e9653c45464c8e36483e41a..399272c58b86e82e67bb466ecb639fb9e59916e4 100644 (file)
@@ -705,6 +705,12 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent,
 
 wxMDIChildFrame::~wxMDIChildFrame()
 {
+    DestroyChildren();
+
+    // already delete by DestroyChildren()
+    m_frameToolBar = NULL;
+    m_frameStatusBar = NULL;
+
     MSWDestroyWindow();
 }