[network-manager-applet] gsm: fix unbalanced refcounting



commit 35ca94e98bda99f69b886aafa63df428b381da63
Author: Dan Williams <dcbw redhat com>
Date:   Sun Feb 28 22:57:02 2010 -0800

    gsm: fix unbalanced refcounting

 src/applet-device-gsm.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/applet-device-gsm.c b/src/applet-device-gsm.c
index be64750..c460cab 100644
--- a/src/applet-device-gsm.c
+++ b/src/applet-device-gsm.c
@@ -53,6 +53,12 @@ typedef struct {
 static void
 gsm_menu_item_info_destroy (gpointer data)
 {
+	GSMMenuItemInfo *info = data;
+
+	g_object_unref (G_OBJECT (info->device));
+	if (info->connection)
+		g_object_unref (info->connection);
+
 	g_slice_free (GSMMenuItemInfo, data);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]