From e29de302a61137328fc89a3c3e662ef84ce928c5 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Mon, 9 Sep 2013 18:49:10 +0200 Subject: [PATCH] Move the CFrame::ClosePages call from ~CFrame to CFrame::OnClose --- Source/Core/DolphinWX/Src/Frame.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp index 8a4c7d5c1d..321cd5fda0 100644 --- a/Source/Core/DolphinWX/Src/Frame.cpp +++ b/Source/Core/DolphinWX/Src/Frame.cpp @@ -387,8 +387,6 @@ CFrame::~CFrame() #if defined(HAVE_XRANDR) && HAVE_XRANDR delete m_XRRConfig; #endif - - ClosePages(); } bool CFrame::RendererIsFullscreen() @@ -474,6 +472,7 @@ void CFrame::OnClose(wxCloseEvent& event) m_LogWindow = NULL; } + ClosePages(); // Uninit m_Mgr->UnInit();