mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
bluez5: fix minor issues / warnings
Make static analysis happier.
This commit is contained in:
parent
38b3d027ec
commit
67c41336db
2 changed files with 5 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue