- Fixed: FinalGC() needs to run before the type system is shut down.

- Fixed: Don't access class metadata at all in DObject::PropagateMark if the type system is shutdown.
- Fixed: If FCompressedMemFile::Reopen() fails, then it would try to double-free memory when deleted.

SVN r3688 (trunk)
This commit is contained in:
Randy Heit 2012-06-16 03:10:38 +00:00
commit c197d0687c
5 changed files with 33 additions and 33 deletions

View file

@ -138,20 +138,6 @@ void STACK_ARGS call_terms ()
}
}
//==========================================================================
//
// FinalGC
//
// Collect garbage one last time before exiting.
//
//==========================================================================
static void FinalGC()
{
Args = NULL;
GC::FullGC();
}
static void STACK_ARGS NewFailure ()
{
I_FatalError ("Failed to allocate memory from system heap");
@ -323,7 +309,6 @@ int main (int argc, char **argv)
try
{
Args = new DArgs(argc, argv);
atterm(FinalGC);
/*
killough 1/98: