a2dp: deinit codec_data in stop

This commit is contained in:
Wim Taymans 2020-12-03 18:11:06 +01:00
parent 8bf0b7b4db
commit 73b13e8ad5
2 changed files with 8 additions and 0 deletions

View file

@ -711,6 +711,10 @@ static int do_stop(struct impl *this)
if (this->transport)
res = spa_bt_transport_release(this->transport);
if (this->codec_data)
this->codec->deinit(this->codec_data);
this->codec_data = NULL;
return res;
}

View file

@ -592,6 +592,10 @@ static int do_stop(struct impl *this)
else
res = 0;
if (this->codec_data)
this->codec->deinit(this->codec_data);
this->codec_data = NULL;
return res;
}