- eliminate dependency on linking order for autosegs registration
This commit is contained in:
parent
013078a02f
commit
18b5928f49
14 changed files with 218 additions and 235 deletions
|
|
@ -3742,12 +3742,10 @@ void D_Cleanup()
|
|||
GC::FullGC(); // clean up before taking down the object list.
|
||||
|
||||
// Delete the reference to the VM functions here which were deleted and will be recreated after the restart.
|
||||
FAutoSegIterator probe(ARegHead, ARegTail);
|
||||
while (*++probe != NULL)
|
||||
AutoSegs::ActionFunctons.ForEach([](AFuncDesc *afunc)
|
||||
{
|
||||
AFuncDesc *afunc = (AFuncDesc *)*probe;
|
||||
*(afunc->VMPointer) = NULL;
|
||||
}
|
||||
});
|
||||
|
||||
GC::DelSoftRootHead();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue