From 193ad2bbf689556c5cf96ff8f6368965223467bd Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Thu, 8 Jan 2009 21:35:45 +0200 Subject: Fix a bogus pointer crash that occurred when reconnecting A2DP. --- audio/unix.c | 1 + 1 file changed, 1 insertion(+) (limited to 'audio/unix.c') 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, -- cgit