network: Fix GtkListStore leak in IPv{4,6} dialogues

https://bugzilla.gnome.org/show_bug.cgi?id=746411
This commit is contained in:
Bastien Nocera 2015-03-18 16:15:43 +01:00
parent 0e428f2881
commit 219a94ed1e
2 changed files with 2 additions and 0 deletions

View file

@ -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) {

View file

@ -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));