X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac6482e0eb085476bca3b81aaed8ed75ab896923..d06b34a73eb466126513bf8b0ed586a8ababc141:/src/msw/mdi.cpp diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 25cf16bbce..399272c58b 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -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(); }