[Menus]: Remove calls to free menus (#642)
It may cause a crash and does not even take a dent in the massive memory leak.
This commit is contained in:
parent
346506a863
commit
34b92abd97
@ -631,8 +631,6 @@ namespace Components
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FreeMenu(oldMenu);
|
||||
}
|
||||
}
|
||||
|
||||
@ -767,8 +765,6 @@ namespace Components
|
||||
// Clear last menu
|
||||
dc->Menus[--dc->menuCount] = nullptr;
|
||||
}
|
||||
|
||||
FreeMenu(menu);
|
||||
}
|
||||
|
||||
void Menus::Add(const std::string& menu)
|
||||
|
Loading…
Reference in New Issue
Block a user