summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) &&