From d313ef4b615048ac92700ce27db6bb28e261bc15 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Tue, 31 Oct 2017 20:00:58 -0400 Subject: [PATCH] - de-init DoomStartupInfo on 'restart' ccmd so that the window title always contains the correct game information. --- src/d_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/d_main.cpp b/src/d_main.cpp index df34f0b6de..130091d169 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.