summaryrefslogtreecommitdiffstats
path: root/audio/avdtp.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-31 21:00:14 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-31 21:00:14 +0000
commitef302c5314c95183b9751adab86ad6f070ef53ee (patch)
tree31ba7ce2e94f86f3bf6d85708d321e5a9d86de8f /audio/avdtp.c
parent8c491ff7a6b47984f238ad76fbad7f842ef45eab (diff)
Remove transport channel callback before freeing stream
Diffstat (limited to 'audio/avdtp.c')
-rw-r--r--audio/avdtp.c3
1 files changed, 3 insertions, 0 deletions
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);