luncher: free the timers

otherwise the timeout can kick in when the icon is already destroyed.

fixes T5033
This commit is contained in:
Marcel Hollerbach 2017-01-10 20:43:50 +01:00
parent e34d1aaba9
commit ecfe4fd289
1 changed files with 2 additions and 0 deletions

View File

@ -206,6 +206,8 @@ _bar_icon_del(Instance *inst, Icon *ic)
if (ic->exec)
e_exec_instance_watcher_del(ic->exec, _bar_instance_watch, ic);
ic->exec = NULL;
E_FREE_FUNC(ic->mouse_in_timer, ecore_timer_del);
E_FREE_FUNC(ic->mouse_out_timer, ecore_timer_del);
E_FREE(ic);
}