mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
Don't destroy menus on removal
This commit is contained in:
@@ -428,8 +428,6 @@ namespace PortabilityLayer
|
||||
void MenuManagerImpl::RemoveMenu(const THandle<Menu> &menu)
|
||||
{
|
||||
Menu *menuPtr = *menu;
|
||||
if (menuPtr->stringBlobHandle)
|
||||
PortabilityLayer::MemoryManager::GetInstance()->ReleaseHandle(menuPtr->stringBlobHandle);
|
||||
|
||||
if (menuPtr->prevMenu)
|
||||
(*menuPtr->prevMenu)->nextMenu = menuPtr->nextMenu;
|
||||
@@ -443,8 +441,6 @@ namespace PortabilityLayer
|
||||
if (m_lastMenu == menu)
|
||||
m_lastMenu = menuPtr->prevMenu;
|
||||
|
||||
menu.Dispose();
|
||||
|
||||
DrawMenuBar();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user