]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/mdig.cpp
Improve wxGTK print and page setup dialogs.
[wxWidgets.git] / src / generic / mdig.cpp
index 591bae2bc4bae926fbbbda5da72c7d84898afac3..0c139b94702fc619581f2d9a1ec0d667ac310f49 100644 (file)
@@ -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