forked from enlightenment/enlightenment
e-comp-wl: Don't try to set null data if we don't have a surface
Summary: This fixes an issue where calling wl_resource_set_user_data with an invalid resource would cause an abort in the wayland libraries, Thus making E crash. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
6a92676cf8
commit
93a125b7a2
|
@ -2050,7 +2050,8 @@ _e_comp_wl_client_cb_del(void *data EINA_UNUSED, E_Client *ec)
|
|||
|
||||
/* the client is getting deleted, which means the pixmap will be getting
|
||||
* freed. We need to unset the surface user data */
|
||||
wl_resource_set_user_data(ec->comp_data->surface, NULL);
|
||||
if (ec->comp_data->surface)
|
||||
wl_resource_set_user_data(ec->comp_data->surface, NULL);
|
||||
|
||||
if (ec->comp_data->pending.opaque)
|
||||
eina_tiler_free(ec->comp_data->pending.opaque);
|
||||
|
|
Loading…
Reference in New Issue