Diff between 89d2b63cfcf6efaa964b170faccd428f521441be and 44e59c8d9fb2ec8eb107ee3d9d73f2a76b4df429
Changed Files
| File | Additions | Deletions | Status |
| audio/avctp.c | +2 | -1 | modified |
Full Patch
diff --git a/audio/avctp.c b/audio/avctp.c
index d98d097..1bc2a1d 100644
--- a/audio/avctp.c
+++ b/audio/avctp.c
@@ -320,7 +320,7 @@ static struct avctp_pdu_handler *find_handler(GSList *list, uint8_t opcode)
static void avctp_disconnected(struct avctp *session)
{
- struct avctp_server *server = session->server;
+ struct avctp_server *server;
if (!session)
return;
@@ -356,6 +356,7 @@ static void avctp_disconnected(struct avctp *session)
session->uinput = -1;
}
+ server = session->server;
server->sessions = g_slist_remove(server->sessions, session);
g_slist_free_full(session->handlers, g_free);
g_free(session);