- 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

View file

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