diff options
Diffstat (limited to 'libnm-glib/nm-device-team.c')
-rw-r--r-- | libnm-glib/nm-device-team.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-glib/nm-device-team.c b/libnm-glib/nm-device-team.c index 67f0d1d44f..adf0113724 100644 --- a/libnm-glib/nm-device-team.c +++ b/libnm-glib/nm-device-team.c @@ -234,7 +234,7 @@ dispose (GObject *object) g_clear_object (&priv->proxy); if (priv->slaves) { - g_ptr_array_foreach (priv->slaves, (GFunc) g_object_unref, NULL); + g_ptr_array_set_free_func (priv->slaves, g_object_unref); g_ptr_array_free (priv->slaves, TRUE); priv->slaves = NULL; } |