Commit baadb75a authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

wayland: Clear hashtable pointers on meta_wayland_touch_release()

Just in case they are poked while no touch interface is available;

https://bugzilla.gnome.org/show_bug.cgi?id=733631
parent f28f5dc0
...@@ -528,8 +528,8 @@ void ...@@ -528,8 +528,8 @@ void
meta_wayland_touch_release (MetaWaylandTouch *touch) meta_wayland_touch_release (MetaWaylandTouch *touch)
{ {
clutter_evdev_remove_filter (evdev_filter_func, touch); clutter_evdev_remove_filter (evdev_filter_func, touch);
g_hash_table_unref (touch->touch_surfaces); g_clear_pointer (&touch->touch_surfaces, (GDestroyNotify) g_hash_table_unref);
g_hash_table_unref (touch->touches); g_clear_pointer (&touch->touches, (GDestroyNotify) g_hash_table_unref);
} }
void void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment