mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
fix crashes and leaks on shutdown
This commit is contained in:
parent
f817aabe24
commit
323c644084
5 changed files with 27 additions and 5 deletions
|
|
@ -686,9 +686,9 @@ static int impl_clear(struct spa_handle *handle)
|
|||
impl = (struct impl *) handle;
|
||||
|
||||
spa_list_for_each_safe(source, tmp, &impl->source_list, link)
|
||||
loop_destroy_source(&source->source);
|
||||
loop_destroy_source(&source->source);
|
||||
spa_list_for_each_safe(source, tmp, &impl->destroy_list, link)
|
||||
free(source);
|
||||
free(source);
|
||||
|
||||
close(impl->ack_fd);
|
||||
close(impl->epoll_fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue