bluez5: fix minor issues / warnings

Make static analysis happier.
This commit is contained in:
Pauli Virtanen 2022-07-20 15:19:37 +03:00 committed by Wim Taymans
parent 38b3d027ec
commit 67c41336db
2 changed files with 5 additions and 4 deletions

View file

@ -469,10 +469,10 @@ static void *codec_init(const struct a2dp_codec *codec, uint32_t flags,
error_errno:
res = -errno;
error:
if (this->ldac)
if (this && this->ldac)
ldacBT_free_handle(this->ldac);
#ifdef ENABLE_LDAC_ABR
if (this->ldac_abr)
if (this && this->ldac_abr)
ldac_ABR_free_handle(this->ldac_abr);
#endif
free(this);