[glib] gnetworkmonitornetlink: don't leak the list of networks



commit 17e95c59c9f7b1cd023aabb3645c70b9f1f37577
Author: Dan Winship <danw gnome org>
Date:   Thu May 17 13:48:21 2012 -0400

    gnetworkmonitornetlink: don't leak the list of networks
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676265

 gio/gnetworkmonitornetlink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gnetworkmonitornetlink.c b/gio/gnetworkmonitornetlink.c
index 7fac1bc..a276c58 100644
--- a/gio/gnetworkmonitornetlink.c
+++ b/gio/gnetworkmonitornetlink.c
@@ -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;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]