Move the CFrame::ClosePages call from ~CFrame to CFrame::OnClose

This commit is contained in:
Pierre Bourdon 2013-09-09 18:49:10 +02:00
parent 380b780dd1
commit e29de302a6
1 changed files with 1 additions and 2 deletions

View File

@ -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();