summaryrefslogtreecommitdiff
path: root/panels
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2022-01-31 00:38:15 +0100
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2022-04-24 12:21:14 +0000
commitf55639cabbfeaac92c0b0ed6670d7920f235aacd (patch)
tree8f6396c2f4fbdb550510bbfa05afcc42c9085dbc /panels
parentc6da230052755afa41b428c9cfd0790ad81471a1 (diff)
downloadgnome-control-center-f55639cabbfeaac92c0b0ed6670d7920f235aacd.tar.gz
display: cleanup monitors list disposition
Diffstat (limited to 'panels')
-rw-r--r--panels/display/cc-display-config-dbus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/panels/display/cc-display-config-dbus.c b/panels/display/cc-display-config-dbus.c
index e896ba5a9..83a49ade9 100644
--- a/panels/display/cc-display-config-dbus.c
+++ b/panels/display/cc-display-config-dbus.c
@@ -1693,8 +1693,7 @@ cc_display_config_dbus_finalize (GObject *object)
g_clear_object (&self->connection);
g_clear_object (&self->proxy);
- g_list_foreach (self->monitors, (GFunc) g_object_unref, NULL);
- g_clear_pointer (&self->monitors, g_list_free);
+ g_clear_list (&self->monitors, g_object_unref);
g_clear_pointer (&self->logical_monitors, g_hash_table_destroy);
g_clear_pointer (&self->clone_modes, g_list_free);