mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: ref client while completing operations
So that an operation can't accidentally free the client.
This commit is contained in:
parent
90eb1c18e0
commit
1d9be5b25a
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue