Ticket #456: boinc_456.patch

File boinc_456.patch, 1.1 KB (added by Der Meister, 17 years ago)

Patch fixing this crash

  • AdvancedFrame.cpp

     
    283283    if (m_pRefreshStateTimer) {
    284284        m_pRefreshStateTimer->Stop();
    285285        delete m_pRefreshStateTimer;
     286        m_pRefreshStateTimer = 0;
    286287    }
    287288
    288289    if (m_pFrameRenderTimer) {
    289290        m_pFrameRenderTimer->Stop();
    290291        delete m_pFrameRenderTimer;
     292        m_pFrameRenderTimer = 0;
    291293    }
    292294
    293295    if (m_pFrameListPanelRenderTimer) {
    294296        m_pFrameListPanelRenderTimer->Stop();
    295297        delete m_pFrameListPanelRenderTimer;
     298        m_pFrameListPanelRenderTimer = 0;
    296299    }
    297300
    298301    if (m_pStatusbar)
     
    21202123        pView = wxDynamicCast(pwndNotebookPage, CBOINCBaseView);
    21212124        wxASSERT(pView);
    21222125
    2123         if (m_pFrameListPanelRenderTimer->IsRunning()) {
     2126        if ((m_pFrameListPanelRenderTimer) && (m_pFrameListPanelRenderTimer->IsRunning())) {
    21242127            m_pFrameListPanelRenderTimer->Stop();
    21252128
    21262129            // View specific refresh rates only apply when a connection to the core