From 9ce01693dd0aa7407b7d8eb37c8524dd05abe15c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 16 Aug 2007 16:59:27 +0000 Subject: Free callback data after removing it from the list --- audio/a2dp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'audio') 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; -- cgit