fix(timer): referenced timer might be deleed when logging
This commit is contained in:
@@ -312,7 +312,9 @@ static bool lv_timer_exec(lv_timer_t * timer)
|
|||||||
timer->last_run = lv_tick_get();
|
timer->last_run = lv_tick_get();
|
||||||
TIMER_TRACE("calling timer callback: %p", *((void **)&timer->timer_cb));
|
TIMER_TRACE("calling timer callback: %p", *((void **)&timer->timer_cb));
|
||||||
if(timer->timer_cb && original_repeat_count != 0) timer->timer_cb(timer);
|
if(timer->timer_cb && original_repeat_count != 0) timer->timer_cb(timer);
|
||||||
TIMER_TRACE("timer callback %p finished", *((void **)&timer->timer_cb));
|
if(!timer_deleted) TIMER_TRACE("timer callback %p finished", *((void **)&timer->timer_cb));
|
||||||
|
else TIMER_TRACE("timer callback finished");
|
||||||
|
|
||||||
LV_ASSERT_MEM_INTEGRITY();
|
LV_ASSERT_MEM_INTEGRITY();
|
||||||
exec = true;
|
exec = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user