sco: remove transport hooks on destroy

This commit is contained in:
Wim Taymans 2020-07-03 16:10:46 +02:00
parent 357868eeb5
commit 7b129c1020
2 changed files with 5 additions and 0 deletions

View file

@ -1072,6 +1072,8 @@ static int impl_get_interface(struct spa_handle *handle, const char *type, void
static int impl_clear(struct spa_handle *handle)
{
struct impl *this = (struct impl *) handle;
if (this->transport)
spa_hook_remove(&this->transport_listener);
spa_system_close(this->data_system, this->timerfd);
return 0;
}