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



commit f89d9a24556b2afe4dd8ebcac38c933134e1453a
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 6f0d3d7..0452095 100644
--- a/src/applet-device-gsm.c
+++ b/src/applet-device-gsm.c
@@ -50,6 +50,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]