From dc5bc3fea8e27ecb192567f5c00d30293bfb9ec8 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 a516d990c..ca6b4baaf 100644 --- a/src/core/meta-idle-monitor.c +++ b/src/core/meta-idle-monitor.c @@ -842,6 +842,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",