- added explicit clearing of global VM stask

When exception is thrown from JITed code, VM stask isn't cleared during unwinding
It needs to be clear explicitly to avoid memory leaks and references to destructed objects on shutdown

https://forum.zdoom.org/viewtopic.php?t=66172
This commit is contained in:
alexey.lysiuk 2019-10-21 15:54:13 +03:00
commit 994960627b
4 changed files with 12 additions and 0 deletions

View file

@ -984,6 +984,7 @@ void D_ErrorCleanup ()
}
if (gamestate == GS_INTERMISSION) gamestate = GS_DEMOSCREEN;
insave = false;
ClearGlobalVMStack();
}
//==========================================================================