network: Fix crash entering IPv4 routes

The wrong destructor was used for a GPtrArray of NMIPRoute.

See https://bugzilla.gnome.org/show_bug.cgi?id=771251
See https://bugzilla.gnome.org/show_bug.cgi?id=771432
This commit is contained in:
Bastien Nocera 2016-09-14 17:14:33 +02:00
parent 7f601cfed4
commit 981c354ebb

View file

@ -794,7 +794,7 @@ ui_to_setting (CEPageIP4 *page)
g_ptr_array_add (dns_servers, NULL);
}
routes = g_ptr_array_new_with_free_func (g_object_unref);
routes = g_ptr_array_new_with_free_func (nm_ip_route_unref);
if (g_str_equal (method, NM_SETTING_IP4_CONFIG_METHOD_AUTO) ||
g_str_equal (method, NM_SETTING_IP4_CONFIG_METHOD_MANUAL))
children = gtk_container_get_children (GTK_CONTAINER (page->routes_list));