mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-20 00:11:31 +00:00
pulse-server: free pending client message
If the client is destroyed before it could completely read the message, free the pending message as well. See #1840
This commit is contained in:
parent
9feecb36d0
commit
ac4ec20b01
|
@ -125,6 +125,9 @@ void client_free(struct client *client)
|
||||||
spa_list_consume(p, &client->pending_samples, link)
|
spa_list_consume(p, &client->pending_samples, link)
|
||||||
pending_sample_free(p);
|
pending_sample_free(p);
|
||||||
|
|
||||||
|
if (client->message)
|
||||||
|
message_free(impl, client->message, false, false);
|
||||||
|
|
||||||
spa_list_consume(msg, &client->out_messages, link)
|
spa_list_consume(msg, &client->out_messages, link)
|
||||||
message_free(impl, msg, true, false);
|
message_free(impl, msg, true, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue