+ // Because in some cases wxScrollArrowTimer can cause
+ // m_captureData to be destructed we need to test if it
+ // is still valid before using.
+ if (m_captureData)
+ {
+ m_captureData->m_timerScroll = tmpTimerScroll;
+
+ m_control->SetArrowFlag(arrow, wxCONTROL_PRESSED, true);
+ }
+ else
+ {
+ delete tmpTimerScroll;
+ }