From 5ea443eb4bb2731ce1f18fa6b3cceb09bdcbef8c Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Thu, 21 Nov 2013 11:56:37 +0100 Subject: [PATCH] idle-monitor: Fix a GSList leak https://bugzilla.gnome.org/show_bug.cgi?id=712833 --- src/core/meta-idle-monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/meta-idle-monitor.c b/src/core/meta-idle-monitor.c index 24e789407..ac38b04c0 100644 --- a/src/core/meta-idle-monitor.c +++ b/src/core/meta-idle-monitor.c @@ -949,6 +949,8 @@ on_bus_acquired (GDBusConnection *connection, for (iter = devices; iter; iter = iter->next) on_device_added (device_manager, iter->data, manager); + g_slist_free (devices); + g_signal_connect_object (device_manager, "device-added", G_CALLBACK (on_device_added), manager, 0); g_signal_connect_object (device_manager, "device-removed",