summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-22 14:14:25 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-22 14:14:25 +0200
commit47f45f2779540eb4d2a42fe9f9406aa92b33b209 (patch)
tree6ce2d5e68212928cf2a7039e817144f5892df78f /audio
parent15388bbd89bb5dfe284ff649d0781165e5114a6f (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 7ed1bb07..68044bee 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -2322,7 +2322,7 @@ int headset_connect_sco(struct audio_device *dev, GIOChannel *io)
if (hs->sco)
return -EISCONN;
- hs->sco = io;
+ hs->sco = g_io_channel_ref(io);
if (hs->pending_ring) {
ring_timer_cb(NULL);