execute deinit flow (#191)

This commit is contained in:
Archez
2024-05-22 09:05:01 -05:00
committed by Garrett Cox
parent b4c7a8bd22
commit 1c4bd942d1
3 changed files with 9 additions and 4 deletions
+6 -3
View File
@@ -86,11 +86,14 @@ namespace BenGui {
}
void Destroy() {
mBenMenuBar = nullptr;
mStatsWindow = nullptr;
mConsoleWindow = nullptr;
mInputEditorWindow = nullptr;
mGfxDebuggerWindow = nullptr;
mSaveEditorWindow = nullptr;
mHudEditorWindow = nullptr;
mActorViewerWindow = nullptr;
mStatsWindow = nullptr;
mConsoleWindow = nullptr;
mBenMenuBar = nullptr;
}
}
+1 -1
View File
@@ -358,7 +358,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.
//BenGui::Destroy();
BenGui::Destroy();
OTRGlobals::Instance->context = nullptr;
}
+2
View File
@@ -119,4 +119,6 @@ void SDL_main(int argc, char** argv /* void* arg*/) {
IrqMgr_RemoveClient(&gIrqMgr, &sIrqClient);
osDestroyThread(&gGraphThread);
DeinitOTR();
}