We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7af8c63 commit 0fc66f8Copy full SHA for 0fc66f8
1 file changed
GeneralsMD/Code/GameEngine/Source/Common/Recorder.cpp
@@ -478,6 +478,15 @@ void RecorderClass::stopPlayback() {
478
479
if (!m_doingAnalysis)
480
{
481
+ // TheSuperHackers @bugfix bobtista 29/01/2026 In headless mode, exit directly to avoid
482
+ // use-after-free crash during normal game cleanup. The crash occurs because objects are
483
+ // accessed after being freed during TheGameEngine->reset(). Since headless mode has no UI
484
+ // and is about to exit anyway, we can safely skip the cleanup and let the OS reclaim resources.
485
+ if (TheGlobalData->m_headless)
486
+ {
487
+ exit(0);
488
+ }
489
+
490
TheGameLogic->exitGame();
491
}
492
0 commit comments