summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-03-28 11:52:21 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-03-28 11:54:02 +0900
commit14dc2d2df72781c886823a0439c365bbed745c55 (patch)
treedd743fb6ceb863dc5d4919e09b8353f4abb98799
parent78af7c9fd790e47815b4c1a68d0c62a99b472287 (diff)
spinner: crash issue on deletion fix
Summary: Issue: longpress timer callback if it gets called after widget deletion, crash happens. Solution: delete the long press timer in smart del function. Signed-off by: Kumar Navneet (k.navneet@samsung.com) Signed-off by: Shilpa Singh (shilpa.singh@samsung.com) Test Plan: When we tap inc/dec fast and delete the widget immediately, crash might happen. Reviewers: raster, seoz, Hermet Reviewed By: Hermet CC: govi, rajeshps Differential Revision: https://phab.enlightenment.org/D669 @fix
-rw-r--r--src/lib/elm_spinner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c
index ae52e119f..2f62fff03 100644
--- a/src/lib/elm_spinner.c
+++ b/src/lib/elm_spinner.c
@@ -759,6 +759,7 @@ _elm_spinner_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
759 eina_stringshare_del(sd->label); 759 eina_stringshare_del(sd->label);
760 ecore_timer_del(sd->delay_change_timer); 760 ecore_timer_del(sd->delay_change_timer);
761 ecore_timer_del(sd->spin_timer); 761 ecore_timer_del(sd->spin_timer);
762 ecore_timer_del(sd->longpress_timer);
762 763
763 if (sd->special_values) 764 if (sd->special_values)
764 { 765 {