diff options
author | Mike Lockwood <lockwood@android.com> | 2009-01-08 21:35:45 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-01-08 21:35:45 +0200 |
commit | 193ad2bbf689556c5cf96ff8f6368965223467bd (patch) | |
tree | 306ee4b0effe1c365fc0323faf841b4a608f862d /audio | |
parent | 88a720cca82ccf44631e03a731bddc65c70927bc (diff) |
Fix a bogus pointer crash that occurred when reconnecting A2DP.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/unix.c | 1 |
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, |