[mutter] backends/native: Fix input device touch hash table leak
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] backends/native: Fix input device touch hash table leak
- Date: Thu, 11 Jun 2020 07:50:06 +0000 (UTC)
commit 94fb82137fd8aef1e18090744e6416beec683831
Author: Sebastian Keller <skeller gnome org>
Date: Mon Jun 8 10:00:57 2020 +0200
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
src/backends/native/meta-input-device-native.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/backends/native/meta-input-device-native.c b/src/backends/native/meta-input-device-native.c
index 4b87eb2a08..3ba9548065 100644
--- a/src/backends/native/meta-input-device-native.c
+++ b/src/backends/native/meta-input-device-native.c
@@ -69,6 +69,7 @@ meta_input_device_native_finalize (GObject *object)
meta_input_device_native_release_touch_slots (device_evdev,
g_get_monotonic_time ());
+ g_clear_pointer (&device_evdev->touches, g_hash_table_unref);
backend = clutter_get_default_backend ();
seat = clutter_backend_get_default_seat (backend);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]