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
|
@ -240,6 +240,7 @@ void pw_thread_loop_destroy(struct pw_thread_loop *loop)
|
|||
|
||||
pw_thread_loop_stop(loop);
|
||||
|
||||
pw_loop_set_callbacks(loop->loop, NULL, NULL);
|
||||
spa_hook_remove(&loop->hook);
|
||||
|
||||
spa_hook_list_clean(&loop->listener_list);
|
||||
|
|
Loading…
Reference in New Issue