mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05:00
remove hooks from objects
Remove the hooks we installed on objects in the destroy/free event or before calling _destroy. This is not really needed but it is a nice thing to do because it calls the hook removed callbacks.
This commit is contained in:
parent
6317bc4deb
commit
1570e62635
19 changed files with 109 additions and 27 deletions
|
|
@ -104,6 +104,7 @@ static void link_destroy(void *data)
|
|||
{
|
||||
struct link_data *ld = data;
|
||||
spa_list_remove(&ld->l);
|
||||
spa_hook_remove(&ld->link_listener);
|
||||
if (ld->global)
|
||||
spa_hook_remove(&ld->global_listener);
|
||||
if (ld->resource)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue