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 fbbc32422e
commit dc5bc3fea8

View File

@ -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",