LADI
/
spa
1
Fork 0

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:
Wim Taymans 2023-04-12 16:46:39 +02:00
parent a66d5b90f9
commit 94a1531ec5
1 changed files with 1 additions and 0 deletions

View File

@ -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);