[gnome-bluetooth] Fix small memory leak on killswitch removal



commit b31aef98a1eb481db23790edcaf84e3db803c67d
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Mar 23 15:51:54 2010 +0000

    Fix small memory leak on killswitch removal

 lib/bluetooth-killswitch.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/bluetooth-killswitch.c b/lib/bluetooth-killswitch.c
index 9c5a70e..fa95248 100644
--- a/lib/bluetooth-killswitch.c
+++ b/lib/bluetooth-killswitch.c
@@ -204,6 +204,7 @@ remove_killswitch (BluetoothKillswitch *killswitch,
 		if (ind->index == index) {
 			priv->killswitches = g_list_remove (priv->killswitches, ind);
 			g_message ("removing killswitch idx %d", index);
+			g_free (ind);
 			g_signal_emit (G_OBJECT (killswitch),
 				       signals[STATE_CHANGED],
 				       0, bluetooth_killswitch_get_state (killswitch));



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