- MGR: Fix the crash on linux when BOINC Manager is shut down.

(Patch from Michael Roberts)
        
    clientgui/
        AdvancedFrame.cpp

svn path=/trunk/boinc/; revision=14789
This commit is contained in:
Rom Walton 2008-02-25 21:01:16 +00:00
parent e59586a93a
commit 4937c0dcf1
2 changed files with 11 additions and 1 deletions

View File

@ -1619,3 +1619,10 @@ David Feb 25 2008
clientgui/
MainDocument.cpp
Rom Feb 25 2008
- MGR: Fix the crash on linux when BOINC Manager is shut down.
(Patch from Michael Roberts)
clientgui/
AdvancedFrame.cpp

View File

@ -283,16 +283,19 @@ CAdvancedFrame::~CAdvancedFrame() {
if (m_pRefreshStateTimer) {
m_pRefreshStateTimer->Stop();
delete m_pRefreshStateTimer;
m_pRefreshStateTimer = NULL;
}
if (m_pFrameRenderTimer) {
m_pFrameRenderTimer->Stop();
delete m_pFrameRenderTimer;
m_pFrameRenderTimer = NULL;
}
if (m_pFrameListPanelRenderTimer) {
m_pFrameListPanelRenderTimer->Stop();
delete m_pFrameListPanelRenderTimer;
m_pFrameListPanelRenderTimer = NULL;
}
if (m_pStatusbar)
@ -2120,7 +2123,7 @@ void CAdvancedFrame::UpdateRefreshTimerInterval( wxInt32 iCurrentNotebookPage )
pView = wxDynamicCast(pwndNotebookPage, CBOINCBaseView);
wxASSERT(pView);
if (m_pFrameListPanelRenderTimer->IsRunning()) {
if (m_pFrameListPanelRenderTimer && m_pFrameListPanelRenderTimer->IsRunning()) {
m_pFrameListPanelRenderTimer->Stop();
// View specific refresh rates only apply when a connection to the core