X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c0ea335c7b1aa4ebd8b3a79dfb4be9fb20eefdb..f4cc15cd73753bccecfc845328be3caf955b0864:/src/msw/mdi.cpp diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index fe708c0538..6e9e158a32 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -212,6 +212,8 @@ bool wxMDIParentFrame::Create(wxWindow *parent, wxMDIParentFrame::~wxMDIParentFrame() { DestroyChildren(); + // already delete by DestroyChildren() + m_frameToolBar = NULL; ::DestroyMenu((HMENU)m_windowMenu); m_windowMenu = 0;