summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_calendar.c
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2020-06-11 16:34:16 +0900
committerHermet Park <chuneon.park@samsung.com>2020-06-11 16:34:17 +0900
commitfc0281f32c34ee22b82819421f3f60746bda6b5c (patch)
treeceb2b567d1db29c0f035d9c3ef5522be5d3d808e /src/lib/elementary/elm_calendar.c
parent4b223b9720244b605167c79acc957674ad0e4e71 (diff)
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
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/elm_calendar.c7
1 files 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)
971 if (_update_data(data, sd->month_btn_clicked, sd->spin_speed)) 971 if (_update_data(data, sd->month_btn_clicked, sd->spin_speed))
972 evas_object_smart_changed(data); 972 evas_object_smart_changed(data);
973 973
974 sd->interval = sd->interval / 1.05; 974 if (sd->spin_timer)
975 ecore_timer_interval_set(sd->spin_timer, sd->interval); 975 {
976 sd->interval = sd->interval / 1.05;
977 ecore_timer_interval_set(sd->spin_timer, sd->interval);
978 }
976 979
977 return ECORE_CALLBACK_RENEW; 980 return ECORE_CALLBACK_RENEW;
978} 981}