From 049434e9e91587e187ec3a644b90a9b8d7a2dc5f Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 19 Feb 2009 20:30:40 +0200 Subject: Add missing g_io_channel_ref --- audio/headset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit