Fix crash when exiting an xdg shell application

The focus in timer has been firing for deleted clients, this causes a
NULL pointer dereference.

Then again, maybe the timer should've been disabled by now...
This commit is contained in:
Derek Foreman 2016-11-30 14:42:01 -06:00
parent 8245c1eb7a
commit ce34c550e7
1 changed files with 2 additions and 0 deletions

View File

@ -600,6 +600,8 @@ _e_comp_wl_evas_cb_focus_in_timer(E_Client *ec)
Eina_List *l;
double t;
if (e_object_is_del(E_OBJECT(ec))) return EINA_FALSE;
ec->comp_data->on_focus_timer = NULL;
if (!e_comp_wl->kbd.focused) return EINA_FALSE;