diff options
author | Luiz Augusto von Dentz <luiz.dentz-von@nokia.com> | 2011-03-23 17:43:33 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-03-24 11:16:40 +0200 |
commit | fe0f3fab1809cdc397b7d8dd41fb0ceed3e73a6c (patch) | |
tree | 3ced95d3eb6982d96002a990473b6e917f041e57 | |
parent | e3a27197820b503f16f39bf4071b65a4e5123b42 (diff) |
Fix crash while exiting when endpoint has a a2dp stream
After releasing the endpoint should not be used anymore.
-rw-r--r-- | audio/a2dp.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |