From ef302c5314c95183b9751adab86ad6f070ef53ee Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 31 Aug 2007 21:00:14 +0000 Subject: Remove transport channel callback before freeing stream --- audio/avdtp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/audio/avdtp.c b/audio/avdtp.c index 2d873bd4..c3ed6f96 100644 --- a/audio/avdtp.c +++ b/audio/avdtp.c @@ -555,6 +555,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); -- cgit