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
This commit is contained in:
Carlos Garnacho 2014-07-24 15:10:25 +02:00
parent f28f5dc0b6
commit baadb75a5e

View File

@ -528,8 +528,8 @@ void
meta_wayland_touch_release (MetaWaylandTouch *touch)
{
clutter_evdev_remove_filter (evdev_filter_func, touch);
g_hash_table_unref (touch->touch_surfaces);
g_hash_table_unref (touch->touches);
g_clear_pointer (&touch->touch_surfaces, (GDestroyNotify) g_hash_table_unref);
g_clear_pointer (&touch->touches, (GDestroyNotify) g_hash_table_unref);
}
void