bluez5: stop before freeing things

Make sure all timers are stopped before we clear our state.

See #2764
This commit is contained in:
Wim Taymans 2022-10-20 21:52:49 +02:00
parent 643d95f515
commit c0fc29494f
4 changed files with 7 additions and 4 deletions

View file

@ -1452,8 +1452,8 @@ static int impl_clear(struct spa_handle *handle)
{
struct impl *this = (struct impl *) handle;
struct port *port = &this->port;
if (this->codec_data)
this->codec->deinit(this->codec_data);
do_stop(this);
if (this->codec_props && this->codec->clear_props)
this->codec->clear_props(this->codec_props);
if (this->transport)