From a02b8441b13c1831562f1a143297d3d024e65ae1 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 22 Jul 2014 01:36:31 +0200 Subject: [PATCH] wayland: set the interface vfuncs when declaring the touch interface Otherwise the NULL vtable would be accessed when trying to release the touch device. https://bugzilla.gnome.org/show_bug.cgi?id=733563 --- src/wayland/meta-wayland-touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-touch.c b/src/wayland/meta-wayland-touch.c index a91ee2443..492218631 100644 --- a/src/wayland/meta-wayland-touch.c +++ b/src/wayland/meta-wayland-touch.c @@ -543,6 +543,6 @@ meta_wayland_touch_create_new_resource (MetaWaylandTouch *touch, cr = wl_resource_create (client, &wl_touch_interface, MIN (META_WL_TOUCH_VERSION, wl_resource_get_version (seat_resource)), id); - wl_resource_set_implementation (cr, NULL, touch, unbind_resource); + wl_resource_set_implementation (cr, &touch_interface, touch, unbind_resource); wl_list_insert (&touch->resource_list, wl_resource_get_link (cr)); }