mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Properly clear UI resources when shutting down the UI
This commit is contained in:
parent
115b7b82aa
commit
35f40e949b
2 changed files with 10 additions and 0 deletions
|
@ -639,6 +639,14 @@ void MenuManager::DeleteAllMenus
|
|||
Menu *menu = m_menulist.ObjectAt( i );
|
||||
delete menu;
|
||||
}
|
||||
|
||||
//
|
||||
// Added in OPM
|
||||
// Make sure to clear the menu list and stack
|
||||
m_menulist.FreeObjectList();
|
||||
|
||||
m_menustack.Clear();
|
||||
m_showmenustack.Clear();
|
||||
}
|
||||
|
||||
Menu *MenuManager::FindMenu
|
||||
|
|
|
@ -910,6 +910,8 @@ void UIWindowManager::Shutdown(void)
|
|||
delete b;
|
||||
}
|
||||
|
||||
m_cursor = NULL;
|
||||
|
||||
UIWidget::Shutdown();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue