Diff between 63ffbe33a5545eea9a007987d86ef7844daf141d and e21b24d8258c0d3a06d19c4124a013b9c28719f9

Changed Files

File Additions Deletions Status
android/a2dp.c +3 -1 modified

Full Patch

diff --git a/android/a2dp.c b/android/a2dp.c
index 145cd67..27360d3 100644
--- a/android/a2dp.c
+++ b/android/a2dp.c
@@ -647,7 +647,9 @@ static void setup_free(void *data)
 {
 	struct a2dp_setup *setup = data;
 
-	preset_free(setup->preset);
+	if (!g_slist_find(setup->endpoint->presets, setup->preset))
+		preset_free(setup->preset);
+
 	g_free(setup);
 }