network: Fix reference leak of NetVpn

The only reference is owned by the devices GtkListStore.

https://bugzilla.gnome.org/show_bug.cgi?id=746411
This commit is contained in:
Bastien Nocera 2015-03-18 18:14:48 +01:00
parent 234ed23138
commit eb14e558e5

View file

@ -1153,6 +1153,7 @@ panel_add_vpn_device (CcNetworkPanel *panel, NMConnection *connection)
PANEL_DEVICES_COLUMN_OBJECT, net_vpn,
-1);
g_free (title);
g_object_unref (net_vpn);
}
static void