From a248db0b65737df3e9f15bdcfa9333d84c6080b3 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 2 Nov 2014 03:31:47 +0100 Subject: [PATCH] Reorder MainNoGUI shutdown Before this change I always got this when closing dolphin-emu-nogui: X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 10 (X_UnmapWindow) Resource id in failed request: 0x3400003 Serial number of failed request: 215 Current serial number in output stream: 219 terminate called without an active exception Aborted --- Source/Core/DolphinWX/MainNoGUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/MainNoGUI.cpp b/Source/Core/DolphinWX/MainNoGUI.cpp index ebe1d97c30..69e7e1d381 100644 --- a/Source/Core/DolphinWX/MainNoGUI.cpp +++ b/Source/Core/DolphinWX/MainNoGUI.cpp @@ -367,8 +367,8 @@ int main(int argc, char* argv[]) while (PowerPC::GetState() != PowerPC::CPU_POWERDOWN) updateMainFrameEvent.Wait(); - platform->Shutdown(); Core::Shutdown(); + platform->Shutdown(); UICommon::Shutdown(); delete platform;