From fe0f3fab1809cdc397b7d8dd41fb0ceed3e73a6c Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 23 Mar 2011 17:43:33 +0200 Subject: [PATCH] Fix crash while exiting when endpoint has a a2dp stream After releasing the endpoint should not be used anymore. --- audio/a2dp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/audio/a2dp.c b/audio/a2dp.c index 85953505b..88c280ab0 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); -- 2.47.3