mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
networkaddress: use free_full
https://bugzilla.gnome.org/show_bug.cgi?id=752293
This commit is contained in:
parent
6a392a55ec
commit
a223796d0b
@ -99,15 +99,7 @@ g_network_address_finalize (GObject *object)
|
||||
|
||||
g_free (addr->priv->hostname);
|
||||
g_free (addr->priv->scheme);
|
||||
|
||||
if (addr->priv->sockaddrs)
|
||||
{
|
||||
GList *a;
|
||||
|
||||
for (a = addr->priv->sockaddrs; a; a = a->next)
|
||||
g_object_unref (a->data);
|
||||
g_list_free (addr->priv->sockaddrs);
|
||||
}
|
||||
g_list_free_full (addr->priv->sockaddrs, g_object_unref);
|
||||
|
||||
G_OBJECT_CLASS (g_network_address_parent_class)->finalize (object);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user