summaryrefslogtreecommitdiffstats
path: root/audio/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/unix.c')
-rw-r--r--audio/unix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/unix.c b/audio/unix.c
index 1e4dd2db..ad311811 100644
--- a/audio/unix.c
+++ b/audio/unix.c
@@ -919,6 +919,7 @@ static int handle_a2dp_transport(struct unix_client *client,
if (client->caps) {
g_slist_foreach(client->caps, (GFunc) g_free, NULL);
g_slist_free(client->caps);
+ client->caps = NULL;
}
media_transport = avdtp_service_cap_new(AVDTP_MEDIA_TRANSPORT,