mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
pipewire: improve memory cleanup
Add method to unload a spa interface. Various other memory cleanups
This commit is contained in:
parent
0dc036ac84
commit
d165b3b842
8 changed files with 362 additions and 80 deletions
|
|
@ -710,8 +710,10 @@ static void destroy_server(struct pw_protocol_server *server)
|
|||
spa_list_for_each_safe(client, tmp, &server->client_list, protocol_link)
|
||||
pw_client_destroy(client);
|
||||
|
||||
if (s->source)
|
||||
if (s->source) {
|
||||
spa_hook_remove(&s->hook);
|
||||
pw_loop_destroy_source(s->loop, s->source);
|
||||
}
|
||||
if (s->addr.sun_path[0])
|
||||
unlink(s->addr.sun_path);
|
||||
if (s->lock_addr[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue