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:52:49 +0900
commit33d91aa9037c52081f8904c8b9e2df1fb97971a5 (patch)
tree98a0b7792cb78de6189695cdaf5c27fecdc8fb5f
parent0c32a3fcf13f0c43747c478f012df259e987c156 (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 11ab88b0b..3199df861 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 {