Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions GeneralsMD/Code/GameEngine/Source/Common/Recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,15 @@ void RecorderClass::stopPlayback() {

if (!m_doingAnalysis)
{
// TheSuperHackers @bugfix bobtista 29/01/2026 In headless mode, exit directly to avoid
// use-after-free crash during normal game cleanup. The crash occurs because objects are
// accessed after being freed during TheGameEngine->reset(). Since headless mode has no UI
// and is about to exit anyway, we can safely skip the cleanup and let the OS reclaim resources.
if (TheGlobalData->m_headless)
{
exit(0);
}

TheGameLogic->exitGame();
}
}
Expand Down
Loading