backends/input-settings: Clear the devices list on dispose

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3788>
This commit is contained in:
Marco Trevisan (Treviño) 2024-05-30 17:20:14 +02:00 committed by Marge Bot
parent b630c3baa6
commit 6a04ea9a59

View File

@ -183,6 +183,7 @@ meta_input_settings_dispose (GObject *object)
g_clear_object (&priv->keyboard_a11y_settings); g_clear_object (&priv->keyboard_a11y_settings);
g_clear_pointer (&priv->mappable_devices, g_hash_table_unref); g_clear_pointer (&priv->mappable_devices, g_hash_table_unref);
g_clear_pointer (&priv->current_tools, g_hash_table_unref); g_clear_pointer (&priv->current_tools, g_hash_table_unref);
g_clear_list (&priv->devices, NULL);
g_clear_pointer (&priv->two_finger_devices, g_hash_table_destroy); g_clear_pointer (&priv->two_finger_devices, g_hash_table_destroy);