Fix segfault on quit (#6212)

This commit is contained in:
Shishu the Dragon
2026-01-30 14:28:55 +13:00
committed by GitHub
parent 23606325e6
commit 79d6f54be1

View File

@@ -1556,6 +1556,7 @@ extern "C" void DeinitOTR() {
// Destroying gui here because we have shared ptrs to LUS objects which output to SPDLOG which is destroyed before // Destroying gui here because we have shared ptrs to LUS objects which output to SPDLOG which is destroyed before
// these shared ptrs. // these shared ptrs.
SohGui::Destroy(); SohGui::Destroy();
sohFast3dWindow = nullptr;
OTRGlobals::Instance->context = nullptr; OTRGlobals::Instance->context = nullptr;
} }