[network-manager-applet] cdma: fix unbalanced refcounting
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] cdma: fix unbalanced refcounting
- Date: Mon, 1 Mar 2010 07:00:59 +0000 (UTC)
commit 2afc6f4530d930d8f0b236704d38eca2a0b26b32
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 8321576..faabc00 100644
--- a/src/applet-device-cdma.c
+++ b/src/applet-device-cdma.c
@@ -53,6 +53,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]