mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-19 08:57:14 -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);
|
reply_set_client_name(client, client->connect_tag);
|
||||||
client->connect_tag = SPA_ID_INVALID;
|
client->connect_tag = SPA_ID_INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
client->ref++;
|
||||||
spa_list_consume(o, &client->operations, link)
|
spa_list_consume(o, &client->operations, link)
|
||||||
operation_complete(o);
|
operation_complete(o);
|
||||||
|
client_unref(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct stream *find_stream(struct client *client, uint32_t index)
|
static struct stream *find_stream(struct client *client, uint32_t index)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue