pulse-server: client: do not leave dangling pointers behind

This commit is contained in:
Barnabás Pőcze 2022-01-14 17:59:35 +01:00 committed by Wim Taymans
parent f38837d9e2
commit d2edb1ab16

View file

@ -129,11 +129,15 @@ void client_disconnect(struct client *client)
pw_map_for_each(&client->streams, client_free_stream, client);
if (client->source)
if (client->source) {
pw_loop_destroy_source(impl->loop, client->source);
client->source = NULL;
}
if (client->manager)
if (client->manager) {
pw_manager_destroy(client->manager);
client->manager = NULL;
}
}
void client_free(struct client *client)