backends/native: Fix input device touch hash table leak

It was emptied but never unref'ed in finalize.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1304
This commit is contained in:
Sebastian Keller 2020-06-08 10:00:57 +02:00 committed by Jonas Ådahl
parent 49408e8f9f
commit 94fb82137f

View File

@ -69,6 +69,7 @@ meta_input_device_native_finalize (GObject *object)
meta_input_device_native_release_touch_slots (device_evdev, meta_input_device_native_release_touch_slots (device_evdev,
g_get_monotonic_time ()); g_get_monotonic_time ());
g_clear_pointer (&device_evdev->touches, g_hash_table_unref);
backend = clutter_get_default_backend (); backend = clutter_get_default_backend ();
seat = clutter_backend_get_default_seat (backend); seat = clutter_backend_get_default_seat (backend);