- fixed: DeinitMenus must explicitly destroy the active menu before taking down the descriptors.

Otherwise the menu will only be collected by the garbage collector and no longer find all relevant data.
This commit is contained in:
Christoph Oelckers 2019-06-10 12:06:03 +02:00 committed by drfrag
parent 36020225eb
commit 96d857cd78

View file

@ -143,6 +143,7 @@ DEFINE_ACTION_FUNCTION(FOptionValues, GetText)
void DeinitMenus()
{
if (CurrentMenu) CurrentMenu->Destroy();
{
FOptionMap::Iterator it(OptionValues);