X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d671c081808cbafb0dcfb7b36e7e851bb480cb2..27005f3a3f26b3b7d413863c4e73c7c30ff6fcc1:/src/mac/mdi.cpp diff --git a/src/mac/mdi.cpp b/src/mac/mdi.cpp index 43681bddfa..add9482e11 100644 --- a/src/mac/mdi.cpp +++ b/src/mac/mdi.cpp @@ -106,8 +106,12 @@ wxMDIParentFrame::~wxMDIParentFrame() { DestroyChildren(); // already delete by DestroyChildren() +#if wxUSE_TOOLBAR m_frameToolBar = NULL; +#endif +#if wxUSE_STATUSBAR m_frameStatusBar = NULL; +#endif m_clientWindow = NULL ; if (m_windowMenu) @@ -273,8 +277,12 @@ wxMDIChildFrame::~wxMDIChildFrame() mdiparent->m_currentChild = NULL; DestroyChildren(); // already delete by DestroyChildren() +#if wxUSE_TOOLBAR m_frameToolBar = NULL; +#endif +#if wxUSE_STATUSBAR m_frameStatusBar = NULL; +#endif } void wxMDIChildFrame::SetMenuBar(wxMenuBar *menu_bar)