[gnome-control-center] display: cleanup monitors list disposition
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] display: cleanup monitors list disposition
- Date: Sun, 24 Apr 2022 12:26:37 +0000 (UTC)
commit f55639cabbfeaac92c0b0ed6670d7920f235aacd
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Mon Jan 31 00:38:15 2022 +0100
display: cleanup monitors list disposition
panels/display/cc-display-config-dbus.c | 3 +--
1 file changed, 1 insertion(+), 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]