[gnome-control-center/gnome-3-14] network: Fix reference leak of NetVirtualDevices



commit 336ebe0e0b60b7ebcf3df9fd23fc2c3330ff94e4
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Mar 18 19:01:13 2015 +0100

    network: Fix reference leak of NetVirtualDevices
    
    The only reference is owned by the devices GtkListStore.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746411

 panels/network/cc-network-panel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index a8b9b5b..711aa09 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -1230,6 +1230,7 @@ panel_add_virtual_device (CcNetworkPanel *panel, NMConnection *connection)
                             PANEL_DEVICES_COLUMN_OBJECT, net_virt,
                             -1);
         g_free (title);
+        g_object_unref (net_virt);
 }
 
 static void


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