- garbage collect static event handlers on restart

Remaining object(s) led to a potential crash on the next garbage collection cycle
Assertion failure was triggered during restarting in Debug configuration
This commit is contained in:
alexey.lysiuk 2018-05-27 16:14:18 +03:00
parent 9fb34fd8e6
commit e085a8d58a
1 changed files with 1 additions and 0 deletions

View File

@ -2730,6 +2730,7 @@ void D_DoomMain (void)
ST_Clear();
D_ErrorCleanup ();
DThinker::DestroyThinkersInList(STAT_STATIC);
E_Shutdown(false);
P_FreeLevelData();
P_FreeExtraLevelData();