Diff between e3a27197820b503f16f39bf4071b65a4e5123b42 and fe0f3fab1809cdc397b7d8dd41fb0ceed3e73a6c

Changed Files

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

Full Patch

diff --git a/audio/a2dp.c b/audio/a2dp.c
index 8595350..88c280a 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -1517,8 +1517,10 @@ proceed:
 
 static void a2dp_unregister_sep(struct a2dp_sep *sep)
 {
-	if (sep->endpoint)
+	if (sep->endpoint) {
 		media_endpoint_release(sep->endpoint);
+		sep->endpoint = NULL;
+	}
 
 	avdtp_unregister_sep(sep->lsep);
 	g_free(sep);