wayland: Fix crash when attempting to create surfaces for deleted clients
Internal clients can be deleted by keybind before the surface create callback fires resulting in a NULL pointer dereference.
This commit is contained in:
parent
53320330c6
commit
d9679f765f
|
@ -1567,6 +1567,8 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
|
||||||
|
|
||||||
DBG("Compositor Cb Surface Create: %d", id);
|
DBG("Compositor Cb Surface Create: %d", id);
|
||||||
|
|
||||||
|
if (e_object_is_del(E_OBJECT(ec))) return;
|
||||||
|
|
||||||
/* try to create an internal surface */
|
/* try to create an internal surface */
|
||||||
if (!(res = wl_resource_create(client, &wl_surface_interface,
|
if (!(res = wl_resource_create(client, &wl_surface_interface,
|
||||||
wl_resource_get_version(resource), id)))
|
wl_resource_get_version(resource), id)))
|
||||||
|
|
Loading…
Reference in New Issue