summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
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 b83ce906..ba53dbb0 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -2284,7 +2284,7 @@ int headset_connect_rfcomm(struct audio_device *dev, GIOChannel *io)
{
struct headset *hs = dev->headset;
- hs->tmp_rfcomm = io;
+ hs->tmp_rfcomm = g_io_channel_ref(io);
return hs->tmp_rfcomm ? 0 : -EINVAL;
}