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
This commit is contained in:
ChunEon Park 2014-03-28 11:52:21 +09:00
parent f868f35c4c
commit bd2d8a3cea
1 changed files with 1 additions and 0 deletions

View File

@ -759,6 +759,7 @@ _elm_spinner_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
eina_stringshare_del(sd->label);
ecore_timer_del(sd->delay_change_timer);
ecore_timer_del(sd->spin_timer);
ecore_timer_del(sd->longpress_timer);
if (sd->special_values)
{