pulse-server: ref client while completing operations

So that an operation can't accidentally free the client.
This commit is contained in:
Wim Taymans 2022-02-21 08:56:02 +01:00
parent 90eb1c18e0
commit 1d9be5b25a

View file

@ -192,8 +192,11 @@ static void manager_sync(void *data)
reply_set_client_name(client, client->connect_tag);
client->connect_tag = SPA_ID_INVALID;
}
client->ref++;
spa_list_consume(o, &client->operations, link)
operation_complete(o);
client_unref(client);
}
static struct stream *find_stream(struct client *client, uint32_t index)