[mutter] wayland: set the interface vfuncs when declaring the touch interface



commit a02b8441b13c1831562f1a143297d3d024e65ae1
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jul 22 01:36:31 2014 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-touch.c b/src/wayland/meta-wayland-touch.c
index a91ee24..4922186 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));
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]