summaryrefslogtreecommitdiffstats
path: root/audio/unix.c
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-01-08 21:35:45 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-01-08 21:35:45 +0200
commit193ad2bbf689556c5cf96ff8f6368965223467bd (patch)
tree306ee4b0effe1c365fc0323faf841b4a608f862d /audio/unix.c
parent88a720cca82ccf44631e03a731bddc65c70927bc (diff)
Fix a bogus pointer crash that occurred when reconnecting A2DP.
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,