Move the CFrame::ClosePages call from ~CFrame to CFrame::OnClose
This commit is contained in:
parent
380b780dd1
commit
e29de302a6
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue