gnetworkmonitornetlink: don't leak the list of networks

https://bugzilla.gnome.org/show_bug.cgi?id=676265
This commit is contained in:
Dan Winship 2012-05-17 13:48:21 -04:00
parent 0ecbb0a404
commit 17e95c59c9

View File

@ -285,7 +285,7 @@ finish_dump (GNetworkMonitorNetlink *nl)
g_network_monitor_base_set_networks (G_NETWORK_MONITOR_BASE (nl),
(GInetAddressMask **)nl->priv->dump_networks->pdata,
nl->priv->dump_networks->len);
g_ptr_array_free (nl->priv->dump_networks, FALSE);
g_ptr_array_free (nl->priv->dump_networks, TRUE);
nl->priv->dump_networks = NULL;
}