[gnome-control-center/gnome-3-12] network: Fix reference leak of NetVpn
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-12] network: Fix reference leak of NetVpn
- Date: Thu, 19 Mar 2015 15:40:58 +0000 (UTC)
commit ac7a1b2d9e5634bf8dfa2a5ac36835adb81f4bbf
Author: Bastien Nocera <hadess hadess net>
Date: Wed Mar 18 18:14:48 2015 +0100
network: Fix reference leak of NetVpn
The only reference is owned by the devices GtkListStore.
https://bugzilla.gnome.org/show_bug.cgi?id=746411
panels/network/cc-network-panel.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 4a22cd0..63913cd 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -1143,6 +1143,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]