mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -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
|
|
@ -44,6 +44,8 @@ static void proxy_device_destroy(void *_data)
|
|||
{
|
||||
struct device_data *data = _data;
|
||||
spa_hook_remove(&data->device_listener);
|
||||
spa_hook_remove(&data->device_methods);
|
||||
spa_hook_remove(&data->proxy_listener);
|
||||
}
|
||||
|
||||
static const struct pw_proxy_events proxy_events = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue