acp: clean up card object

Fixes #369
This commit is contained in:
Wim Taymans 2020-11-09 15:01:07 +01:00
parent 779579b349
commit 42dd52c7fe
8 changed files with 69 additions and 11 deletions

View file

@ -835,6 +835,10 @@ static int impl_clear(struct spa_handle *handle)
{
struct impl *this = (struct impl *) handle;
remove_sources(this);
if (this->card) {
acp_card_destroy(this->card);
this->card = NULL;
}
return 0;
}