From e085a8d58aa465cbcb91c839f4ee39b3c8a69ebf Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 27 May 2018 16:14:18 +0300 Subject: [PATCH] - 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 --- src/d_main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/d_main.cpp b/src/d_main.cpp index 861318c66c..ed986beb7a 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -2730,6 +2730,7 @@ void D_DoomMain (void) ST_Clear(); D_ErrorCleanup (); DThinker::DestroyThinkersInList(STAT_STATIC); + E_Shutdown(false); P_FreeLevelData(); P_FreeExtraLevelData();