- 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:
parent
ed337b3ecc
commit
994960627b
4 changed files with 12 additions and 0 deletions
|
|
@ -250,6 +250,7 @@ void FThinkerCollection::DestroyAllThinkers()
|
|||
GC::FullGC();
|
||||
if (error)
|
||||
{
|
||||
ClearGlobalVMStack();
|
||||
I_Error("DestroyAllThinkers failed");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue