[network-manager-applet/NETWORKMANAGER_APPLET_0_7] cdma: fix unbalanced refcounting
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/NETWORKMANAGER_APPLET_0_7] cdma: fix unbalanced refcounting
- Date: Mon, 1 Mar 2010 17:10:07 +0000 (UTC)
commit f5099957e2f4d962e60f4268ae9442105c38421d
Author: Dan Williams <dcbw redhat com>
Date: Sun Feb 28 22:57:19 2010 -0800
cdma: fix unbalanced refcounting
src/applet-device-cdma.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/applet-device-cdma.c b/src/applet-device-cdma.c
index 9e19f34..02429ae 100644
--- a/src/applet-device-cdma.c
+++ b/src/applet-device-cdma.c
@@ -49,6 +49,12 @@ typedef struct {
static void
cdma_menu_item_info_destroy (gpointer data)
{
+ CdmaMenuItemInfo *info = data;
+
+ g_object_unref (G_OBJECT (info->device));
+ if (info->connection)
+ g_object_unref (info->connection);
+
g_slice_free (CdmaMenuItemInfo, data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]