From 79d6f54be1ef1c312f25a8ab12202817946eb16e Mon Sep 17 00:00:00 2001 From: Shishu the Dragon <183069616+ShishuTheDragon@users.noreply.github.com> Date: Fri, 30 Jan 2026 14:28:55 +1300 Subject: [PATCH] Fix segfault on quit (#6212) --- soh/soh/OTRGlobals.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index 7535a8739..a56e59c20 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -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 // these shared ptrs. SohGui::Destroy(); + sohFast3dWindow = nullptr; OTRGlobals::Instance->context = nullptr; }