if (theNewMenu)
{
- if (m_pMenu)
- delete m_pMenu;
+ delete m_pMenu;
m_pMenu = theNewMenu;
m_pMenu->SetInvokingWindow(m_menuEventWindow);
}
{
wxASSERT(menu != NULL);
- if (m_pMenu)
- delete m_pMenu;
+ delete m_pMenu;
// start copy of menu
m_pMenu = wxDeepCopyMenu(menu);