Skip to content
Permalink
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 authored and madame-rachelle committed Jun 10, 2019
1 parent ba09f55 commit c6f290dcf8b891af385a920861b199a53771a8c0
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 c6f290d

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