aboutsummaryrefslogtreecommitdiff
path: root/src/mm-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm-device.c')
-rw-r--r--src/mm-device.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mm-device.c b/src/mm-device.c
index 1b69f3de..1e53870a 100644
--- a/src/mm-device.c
+++ b/src/mm-device.c
@@ -509,11 +509,9 @@ mm_device_peek_port_probe_list (MMDevice *self)
GList *
mm_device_get_port_probe_list (MMDevice *self)
{
- GList *copy;
-
- copy = g_list_copy (self->priv->port_probes);
- g_list_foreach (copy, (GFunc)g_object_ref, NULL);
- return copy;
+ return g_list_copy_deep (self->priv->port_probes,
+ (GCopyFunc)g_object_ref,
+ NULL);
}
gboolean