mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
clean the hook lists
Make sure the hook lists are emptied so that the removed callbacks are called. The callers should really remove the hook they installed themselves but this is a last chance to fix things up.
This commit is contained in:
parent
1570e62635
commit
a2549fc638
21 changed files with 47 additions and 0 deletions
|
|
@ -292,6 +292,8 @@ void pw_protocol_native_connection_destroy(struct pw_protocol_native_connection
|
|||
|
||||
spa_hook_list_call(&conn->listener_list, struct pw_protocol_native_connection_events, destroy, 0);
|
||||
|
||||
spa_hook_list_clean(&conn->listener_list);
|
||||
|
||||
clear_buffer(&impl->out, true);
|
||||
clear_buffer(&impl->in, true);
|
||||
free(impl->out.buffer_data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue