stefan pushed a commit to branch efl-1.24. http://git.enlightenment.org/core/efl.git/commit/?id=324029062b6ece6964872148e8e5d68cbacd911e
commit 324029062b6ece6964872148e8e5d68cbacd911e Author: Woochanlee <wc0917....@samsung.com> Date: Thu Jun 11 16:34:16 2020 +0900 elm_calendar: Do not pass NULL to function. Summary: T7076 legacy calendar inc/dec button has auto repeat feature. for that if user click the button very quickly, we delete internal timer than it will pass to function. to prevent this, need to check NULL pointer. Reviewers: devilhorns, Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11966 --- src/lib/elementary/elm_calendar.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/elm_calendar.c b/src/lib/elementary/elm_calendar.c index 6edefe3c5e..c58fc1cc15 100644 --- a/src/lib/elementary/elm_calendar.c +++ b/src/lib/elementary/elm_calendar.c @@ -971,8 +971,11 @@ _spin_value(void *data) if (_update_data(data, sd->month_btn_clicked, sd->spin_speed)) evas_object_smart_changed(data); - sd->interval = sd->interval / 1.05; - ecore_timer_interval_set(sd->spin_timer, sd->interval); + if (sd->spin_timer) + { + sd->interval = sd->interval / 1.05; + ecore_timer_interval_set(sd->spin_timer, sd->interval); + } return ECORE_CALLBACK_RENEW; } --