X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d671c081808cbafb0dcfb7b36e7e851bb480cb2..e71800ba3a40711f6c6c2461ed10cd6f2502c1d1:/src/mac/carbon/mdi.cpp diff --git a/src/mac/carbon/mdi.cpp b/src/mac/carbon/mdi.cpp index 43681bddfa..add9482e11 100644 --- a/src/mac/carbon/mdi.cpp +++ b/src/mac/carbon/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)