forked from enlightenment/enlightenment
Fix crash on xdg shell unbind
Running weston-simple-dmabuf-intel and killing it could crash E in xdg_shell_unbind.
This commit is contained in:
parent
f58eb2db7b
commit
3313f0f26d
|
@ -1336,11 +1336,14 @@ _e_xdg_shell_cb_unbind(struct wl_resource *resource)
|
||||||
E_Client *ec = wl_resource_get_user_data(res);
|
E_Client *ec = wl_resource_get_user_data(res);
|
||||||
E_Shell_Data *shd;
|
E_Shell_Data *shd;
|
||||||
|
|
||||||
if (ec->comp_data->shell.surface)
|
if (!e_object_is_del(E_OBJECT(ec)))
|
||||||
e_shell_surface_cb_destroy(ec->comp_data->shell.surface);
|
{
|
||||||
shd = ec->comp_data->shell.data;
|
if (ec->comp_data->shell.surface)
|
||||||
if (shd)
|
e_shell_surface_cb_destroy(ec->comp_data->shell.surface);
|
||||||
e_shell_surface_cb_destroy(shd->surface);
|
shd = ec->comp_data->shell.data;
|
||||||
|
if (shd)
|
||||||
|
e_shell_surface_cb_destroy(shd->surface);
|
||||||
|
}
|
||||||
v->surfaces = eina_list_remove_list(v->surfaces, l);
|
v->surfaces = eina_list_remove_list(v->surfaces, l);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue