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
|
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||||
delete m_XRRConfig;
|
delete m_XRRConfig;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ClosePages();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CFrame::RendererIsFullscreen()
|
bool CFrame::RendererIsFullscreen()
|
||||||
|
@ -474,6 +472,7 @@ void CFrame::OnClose(wxCloseEvent& event)
|
||||||
m_LogWindow = NULL;
|
m_LogWindow = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ClosePages();
|
||||||
|
|
||||||
// Uninit
|
// Uninit
|
||||||
m_Mgr->UnInit();
|
m_Mgr->UnInit();
|
||||||
|
|
Loading…
Reference in New Issue