mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
thread-loop: remove callbacks in destroy
Make sure the pw_loop doesn't call our callbacks anymore after we are destroyed. See #3150
This commit is contained in:
parent
a66d5b90f9
commit
94a1531ec5
1 changed files with 1 additions and 0 deletions
|
|
@ -240,6 +240,7 @@ void pw_thread_loop_destroy(struct pw_thread_loop *loop)
|
||||||
|
|
||||||
pw_thread_loop_stop(loop);
|
pw_thread_loop_stop(loop);
|
||||||
|
|
||||||
|
pw_loop_set_callbacks(loop->loop, NULL, NULL);
|
||||||
spa_hook_remove(&loop->hook);
|
spa_hook_remove(&loop->hook);
|
||||||
|
|
||||||
spa_hook_list_clean(&loop->listener_list);
|
spa_hook_list_clean(&loop->listener_list);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue