[network-manager-applet/NETWORKMANAGER_APPLET_0_7] cdma: fix unbalanced refcounting



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]