From c0de0ea2dce19830f16a731266e4299c60e5b1d7 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 24 Aug 2007 13:11:01 +0000 Subject: Remove left-over transport callback in stream_free --- audio/avdtp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'audio/avdtp.c') diff --git a/audio/avdtp.c b/audio/avdtp.c index 99a929f4..b90c57b8 100644 --- a/audio/avdtp.c +++ b/audio/avdtp.c @@ -471,6 +471,9 @@ static void stream_free(struct avdtp_stream *stream) if (stream->timer) g_source_remove(stream->timer); + if (stream->io) + g_source_remove(stream->io); + g_slist_foreach(stream->callbacks, (GFunc) g_free, NULL); g_slist_free(stream->callbacks); @@ -1240,6 +1243,8 @@ static gboolean transport_cb(GIOChannel *chan, GIOCondition cond, sep->cfm->close(stream->session, sep, stream, NULL, sep->user_data); + stream->io = 0; + avdtp_sep_set_state(stream->session, sep, AVDTP_STATE_IDLE); return FALSE; -- cgit