[network-manager-applet] applet: fix leaking pixbuf
- From: Jiří Klimeš <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] applet: fix leaking pixbuf
- Date: Fri, 31 May 2013 19:24:03 +0000 (UTC)
commit 8cb4563145335bb944d17865e615344e6897d13d
Author: Jiří Klimeš <jklimes redhat com>
Date: Fri May 31 21:14:43 2013 +0200
applet: fix leaking pixbuf
See commit 92b09d9ed818ba011018310265bc794dbcf18884 and
https://bugs.launchpad.net/bugs/939802
src/applet-device-bond.c | 2 +-
src/applet-device-bridge.c | 2 +-
src/applet-device-vlan.c | 2 +-
src/applet-device-wimax.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/applet-device-bond.c b/src/applet-device-bond.c
index 1e0aba8..36e22f7 100644
--- a/src/applet-device-bond.c
+++ b/src/applet-device-bond.c
@@ -130,7 +130,7 @@ bond_get_icon (NMDevice *device,
break;
}
- return pixbuf;
+ return pixbuf ? g_object_ref (pixbuf) : NULL;
}
static gboolean
diff --git a/src/applet-device-bridge.c b/src/applet-device-bridge.c
index a621b76..4352411 100644
--- a/src/applet-device-bridge.c
+++ b/src/applet-device-bridge.c
@@ -130,7 +130,7 @@ bridge_get_icon (NMDevice *device,
break;
}
- return pixbuf;
+ return pixbuf ? g_object_ref (pixbuf) : NULL;
}
static gboolean
diff --git a/src/applet-device-vlan.c b/src/applet-device-vlan.c
index 2f6aa3d..8f6e5e5 100644
--- a/src/applet-device-vlan.c
+++ b/src/applet-device-vlan.c
@@ -244,7 +244,7 @@ vlan_get_icon (NMDevice *device,
break;
}
- return pixbuf;
+ return pixbuf ? g_object_ref (pixbuf) : NULL;
}
static gboolean
diff --git a/src/applet-device-wimax.c b/src/applet-device-wimax.c
index faa3b05..8780011 100644
--- a/src/applet-device-wimax.c
+++ b/src/applet-device-wimax.c
@@ -460,7 +460,7 @@ wimax_get_icon (NMDevice *device,
break;
}
- return pixbuf;
+ return pixbuf ? g_object_ref (pixbuf) : NULL;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]