diff --git a/src/d_main.cpp b/src/d_main.cpp index df34f0b6d..130091d16 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -2777,6 +2777,10 @@ void D_DoomMain (void) FS_Close(); // destroy the global FraggleScript. DeinitMenus(); + // delete DoomStartupInfo data + DoomStartupInfo.Name = (const char*)0; + DoomStartupInfo.BkColor = DoomStartupInfo.FgColor = DoomStartupInfo.Type = 0; + 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.