idle-monitor: Fix a GSList leak

https://bugzilla.gnome.org/show_bug.cgi?id=712833
This commit is contained in:
Rui Matos 2013-11-21 11:56:37 +01:00
parent a37a8c6497
commit 5ea443eb4b

View File

@ -949,6 +949,8 @@ on_bus_acquired (GDBusConnection *connection,
for (iter = devices; iter; iter = iter->next) for (iter = devices; iter; iter = iter->next)
on_device_added (device_manager, iter->data, manager); on_device_added (device_manager, iter->data, manager);
g_slist_free (devices);
g_signal_connect_object (device_manager, "device-added", g_signal_connect_object (device_manager, "device-added",
G_CALLBACK (on_device_added), manager, 0); G_CALLBACK (on_device_added), manager, 0);
g_signal_connect_object (device_manager, "device-removed", g_signal_connect_object (device_manager, "device-removed",