Re: [PATCH wayland] server: don't send an error to NULL display_resource

2015-12-11 Thread Marek Chalupa
Hi, On 12/07/2015 06:54 PM, Bill Spitzak wrote: On Mon, Dec 7, 2015 at 12:42 AM, Marek Chalupa mailto:mchqwe...@gmail.com>> wrote: diff --git a/src/wayland-server.c b/src/wayland-server.c index 1364d5d..b372aa9 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c

Re: [PATCH wayland] server: don't send an error to NULL display_resource

2015-12-07 Thread Bill Spitzak
On Mon, Dec 7, 2015 at 12:42 AM, Marek Chalupa wrote: > > diff --git a/src/wayland-server.c b/src/wayland-server.c > index 1364d5d..b372aa9 100644 > --- a/src/wayland-server.c > +++ b/src/wayland-server.c > @@ -511,6 +511,14 @@ wl_client_get_object(struct wl_client *client, > uint32_t id) > WL_E

[PATCH wayland] server: don't send an error to NULL display_resource

2015-12-07 Thread Marek Chalupa
if display_resource = wl_resource_create() fails in bind_display(), we call wl_client_post_no_memory() which is wrong, since this function uses display_resource (which is NULL at this point). So remove call to this function (said simply: don't send an error to resource that you've just failed to cr