summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2010-03-23 15:51:54 +0000
committerBastien Nocera <hadess@hadess.net>2010-03-23 17:11:30 +0000
commitb31aef98a1eb481db23790edcaf84e3db803c67d (patch)
treed99a560c876c5ba40186fa41d4be4435e76c7033 /lib
parent9cb411c0b80d05a15015dbdd03f3dd14ed03440c (diff)
downloadgnome-bluetooth-b31aef98a1eb481db23790edcaf84e3db803c67d.tar.gz
Fix small memory leak on killswitch removal
Diffstat (limited to 'lib')
-rw-r--r--lib/bluetooth-killswitch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bluetooth-killswitch.c b/lib/bluetooth-killswitch.c
index 9c5a70e9..fa952484 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));