impl-link: cancel link operations in work_queue in destroy

Fixes #1705
This commit is contained in:
Wim Taymans 2021-10-09 15:17:26 +02:00
parent 2aabc4610b
commit ffc5c49508

View file

@ -1432,6 +1432,8 @@ void pw_impl_link_destroy(struct pw_impl_link *link)
pw_log_debug("%p: free", impl); pw_log_debug("%p: free", impl);
pw_impl_link_emit_free(link); pw_impl_link_emit_free(link);
pw_work_queue_cancel(impl->work, link, SPA_ID_INVALID);
spa_hook_list_clean(&link->listener_list); spa_hook_list_clean(&link->listener_list);
pw_properties_free(link->properties); pw_properties_free(link->properties);