Remove wayland focus timer in delete callback

If we don't remove it now it could fire later when the structures
it depends on are already freed.
This commit is contained in:
Derek Foreman 2016-02-18 12:40:52 -06:00 committed by Mike Blumenkrantz
parent 2904c7a611
commit 5143ed69de
1 changed files with 3 additions and 0 deletions

View File

@ -2241,6 +2241,9 @@ _e_comp_wl_client_cb_del(void *data EINA_UNUSED, E_Client *ec)
/* make sure this is a wayland client */
if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_WL) return;
/* remove focus timer */
E_FREE_FUNC(ec->comp_data->on_focus_timer, ecore_timer_del);
/* remove sub list */
EINA_LIST_FREE(ec->comp_data->sub.list, subc)
subc->comp_data->sub.data->parent = NULL;