Skip to content
Browse files

- fixed: DeinitMenus must explicitly destroy the active menu before t…

…aking down the descriptors.

Otherwise the menu will only be collected by the garbage collector and no longer find all relevant data.
  • Loading branch information...
coelckers committed Jun 10, 2019
1 parent 2766303 commit 4c622ba0661b417f4ef1c962da08df29f31fb936
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/menu/menudef.cpp
@@ -136,6 +136,7 @@ DEFINE_ACTION_FUNCTION(FOptionValues, GetText)

void DeinitMenus()
if (CurrentMenu) CurrentMenu->Destroy();
FOptionMap::Iterator it(OptionValues);

0 comments on commit 4c622ba

Please sign in to comment.
You can’t perform that action at this time.