Fix segfault on quit (#6212)
This commit is contained in:
committed by
GitHub
parent
23606325e6
commit
79d6f54be1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user