diff --git a/src/d_main.cpp b/src/d_main.cpp index 86e0fbb51a..2cd4ca7a7b 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -132,6 +132,7 @@ extern void M_SetDefaultMode (); extern void G_NewInit (); extern void SetupPlayerClasses (); extern void HUD_InitHud(); +void DeinitMenus(); const FIWADInfo *D_FindIWAD(TArray &wadfiles, const char *iwad, const char *basewad); // PUBLIC FUNCTION PROTOTYPES ---------------------------------------------- @@ -2736,6 +2737,7 @@ void D_DoomMain (void) C_ClearAliases(); // CCMDs won't be reinitialized so these need to be deleted here DestroyCVarsFlagged(CVAR_MOD); // Delete any cvar left by mods FS_Close(); // destroy the global FraggleScript. + DeinitMenus(); GC::FullGC(); // clean up before taking down the object list. diff --git a/src/menu/menudef.cpp b/src/menu/menudef.cpp index 12df3d65f6..9d72449990 100644 --- a/src/menu/menudef.cpp +++ b/src/menu/menudef.cpp @@ -137,7 +137,7 @@ DEFINE_ACTION_FUNCTION(FOptionValues, GetText) } -static void DeinitMenus() +void DeinitMenus() { { FOptionMap::Iterator it(OptionValues);