diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index a671197d7..aca9abd93 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -1395,11 +1395,13 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso } DBG("\tUsing Pixmap: %p", ep); - ec = e_client_new(ep, 0, 0); - ec->new_client = 0; - e_comp->new_clients--; - ec->client.w = ec->client.h = 1; - ec->ignored = 1; + if ((ec = e_client_new(ep, 0, 0))) + { + ec->new_client = 0; + e_comp->new_clients--; + ec->client.w = ec->client.h = 1; + ec->ignored = 1; + } /* set reference to pixmap so we can fetch it later */ wl_resource_set_user_data(res, ep);