X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d671c081808cbafb0dcfb7b36e7e851bb480cb2..e2c922f53f6a8f08e8a82817c75981822dbe9ca1:/src/mac/mdi.cpp?ds=inline 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)