[gnome-control-center/gnome-3-12] network: Fix GtkListStore leak in IPv{4, 6} dialogues



commit 76995b5e79f2f94735237c61c91bca1454503c89
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Mar 18 16:15:43 2015 +0100

    network: Fix GtkListStore leak in IPv{4,6} dialogues
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746411

 panels/network/connection-editor/ce-page-ip4.c |    1 +
 panels/network/connection-editor/ce-page-ip6.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/connection-editor/ce-page-ip4.c b/panels/network/connection-editor/ce-page-ip4.c
index 63e0779..ad77f3a 100644
--- a/panels/network/connection-editor/ce-page-ip4.c
+++ b/panels/network/connection-editor/ce-page-ip4.c
@@ -642,6 +642,7 @@ connect_ip4_page (CEPageIP4 *page)
                                            -1);
 
         gtk_combo_box_set_model (page->method, GTK_TREE_MODEL (store));
+        g_object_unref (G_OBJECT (store));
 
         method = IP4_METHOD_AUTO;
         if (g_strcmp0 (str_method, NM_SETTING_IP4_CONFIG_METHOD_LINK_LOCAL) == 0) {
diff --git a/panels/network/connection-editor/ce-page-ip6.c b/panels/network/connection-editor/ce-page-ip6.c
index 3e5d7dc..5d95110 100644
--- a/panels/network/connection-editor/ce-page-ip6.c
+++ b/panels/network/connection-editor/ce-page-ip6.c
@@ -642,6 +642,7 @@ connect_ip6_page (CEPageIP6 *page)
                                            METHOD_COL_NAME, _("Link-Local Only"),
                                            METHOD_COL_METHOD, IP6_METHOD_LINK_LOCAL,
                                            -1);
+        g_object_unref (G_OBJECT (store));
 
         gtk_combo_box_set_model (page->method, GTK_TREE_MODEL (store));
 


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