Skip to content

Commit

Permalink
- fixed: DeinitMenus must explicitly destroy the active menu before t…
Browse files Browse the repository at this point in the history
…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 4c622ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/menu/menudef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ DEFINE_ACTION_FUNCTION(FOptionValues, GetText)

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

Expand Down

0 comments on commit 4c622ba

Please sign in to comment.