[PATCH weston] input: Implement wl_seat.release

Pekka Paalanen ppaalanen at gmail.com
Thu Mar 17 12:50:06 UTC 2016


On Wed, 16 Mar 2016 08:17:14 +0100
Hardening <rdp.effort at gmail.com> wrote:

> Le 13/03/2016 17:49, Quentin Glidic a écrit :
> > From: Quentin Glidic <sardemff7+git at sardemff7.net>
> > 
> > Avoid a crash because listener is NULL.
> > 
> > Signed-off-by: Quentin Glidic <sardemff7+git at sardemff7.net>
> > ---
> >  src/input.c | 7 +++++++
> >  1 file changed, 7 insertions(+)
> > 
> > diff --git a/src/input.c b/src/input.c
> > index 8c106dd..5d13b08 100644
> > --- a/src/input.c
> > +++ b/src/input.c
> > @@ -2230,10 +2230,17 @@ seat_get_touch(struct wl_client *client, struct wl_resource *resource,
> >  				       seat, unbind_resource);
> >  }
> >  
> > +static void
> > +seat_release(struct wl_client *client, struct wl_resource *resource)
> > +{
> > +	wl_resource_destroy(resource);
> > +}
> > +
> >  static const struct wl_seat_interface seat_interface = {
> >  	seat_get_pointer,
> >  	seat_get_keyboard,
> >  	seat_get_touch,
> > +	seat_release,
> >  };
> >  
> >  static void
> >   
> Reviewed-By: David Fort <contact at hardening-consulting.com>
> 
> Definitely my fault, strange that we have not seen this before (I can't
> imagine that seats were never released ;) ).
> 

Nice, pushed:
   7a5c562..aab1d36  master -> master


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160317/b00052dd/attachment.sig>


More information about the wayland-devel mailing list