From 47f45f2779540eb4d2a42fe9f9406aa92b33b209 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 22 Feb 2009 14:14:25 +0200 Subject: Add missing g_io_channel_ref --- audio/headset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') 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); -- cgit