[gnome-control-center/gnome-3-14] network: Fix GtkListStore leak in IPv{4, 6} dialogues
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-14] network: Fix GtkListStore leak in IPv{4, 6} dialogues
- Date: Thu, 19 Mar 2015 15:41:05 +0000 (UTC)
commit cc0ebf6004a4ff5af6ddc22d56fb953efeddc3dc
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 643a7f2..f33e197 100644
--- a/panels/network/connection-editor/ce-page-ip4.c
+++ b/panels/network/connection-editor/ce-page-ip4.c
@@ -625,6 +625,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 077a5d5..5bc5af8 100644
--- a/panels/network/connection-editor/ce-page-ip6.c
+++ b/panels/network/connection-editor/ce-page-ip6.c
@@ -625,6 +625,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]