X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8cc208e39f61bca01cc23c339843891f099d47c5..fda43a0e0127577b89168679852bb64a106714f0:/src/generic/mdig.cpp?ds=sidebyside diff --git a/src/generic/mdig.cpp b/src/generic/mdig.cpp index 591bae2bc4..0c139b9470 100644 --- a/src/generic/mdig.cpp +++ b/src/generic/mdig.cpp @@ -74,11 +74,7 @@ wxGenericMDIParentFrame::~wxGenericMDIParentFrame() wxDELETE(m_clientWindow); #if wxUSE_MENUS - if (m_pMyMenuBar) - { - delete m_pMyMenuBar; - m_pMyMenuBar = NULL; - } + wxDELETE(m_pMyMenuBar); RemoveWindowMenu(GetMenuBar()); #endif // wxUSE_MENUS