forked from enlightenment/enlightenment
unset wl client surface pointer on surface destroy
leaving this around after this point is dangerous and has a high probability of crashing
This commit is contained in:
parent
1c4b11ef9f
commit
886d29d5d5
|
@ -1558,7 +1558,10 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
|
||||||
static void
|
static void
|
||||||
_e_comp_wl_surface_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
|
_e_comp_wl_surface_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
|
||||||
{
|
{
|
||||||
|
E_Client *ec;
|
||||||
DBG("Surface Cb Destroy: %d", wl_resource_get_id(resource));
|
DBG("Surface Cb Destroy: %d", wl_resource_get_id(resource));
|
||||||
|
ec = wl_resource_get_user_data(resource);
|
||||||
|
if (ec && (!e_object_is_del(E_OBJECT(ec)))) ec->comp_data->surface = NULL;
|
||||||
wl_resource_destroy(resource);
|
wl_resource_destroy(resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue