summaryrefslogtreecommitdiffstats
path: root/audio/a2dp.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-16 16:59:27 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-16 16:59:27 +0000
commit9ce01693dd0aa7407b7d8eb37c8524dd05abe15c (patch)
treec263ace4623e3986297a76d04c1817939316f2cb /audio/a2dp.c
parent768cffb8e0bb3f9d062441b06db486a63d1f8a5c (diff)
Free callback data after removing it from the list
Diffstat (limited to 'audio/a2dp.c')
-rw-r--r--audio/a2dp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c
index bcd294da..d1f90fd1 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -774,6 +774,7 @@ gboolean a2dp_source_cancel_stream(int id)
return FALSE;
setup->cb = g_slist_remove(setup->cb, cb_data);
+ g_free(cb_data);
if (!setup->cb)
setup->canceled = TRUE;