forked from enlightenment/efl
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:
parent
f868f35c4c
commit
bd2d8a3cea
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue