summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-19 20:35:46 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-19 20:35:46 +0200
commitba1b8ea534d8680b128755ffd0bc26b35e248699 (patch)
tree7120bacdb30903b7fe1538194d5ec8bd979018fd /audio
parent049434e9e91587e187ec3a644b90a9b8d7a2dc5f (diff)
Add missing g_io_channel_ref
Diffstat (limited to 'audio')
-rw-r--r--audio/headset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c
index ba53dbb0..2120a60f 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1241,7 +1241,7 @@ static void rfcomm_connect_cb(GIOChannel *chan, GError *err, gpointer user_data)
}
ba2str(&dev->dst, hs_address);
- hs->rfcomm = chan;
+ hs->rfcomm = g_io_channel_ref(chan);
p->io = NULL;
if (server_is_enabled(&dev->src, HANDSFREE_SVCLASS_ID) &&