From: Julian Smart Date: Wed, 15 Mar 2000 00:22:33 +0000 (+0000) Subject: Possible fix for DestroyWindow message in MDI apps (call DestroyChildren in destructor) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/627a3091c87f80e2aaf4f500825b5896c442d222 Possible fix for DestroyWindow message in MDI apps (call DestroyChildren in destructor) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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(); }