bluetooth: Release container with device UUID strings

Stop leaking container with UUID strings when releasing adapter.

Fixes: 4b55b8a9d ("bluetooth: Keep a list of local adapters' UUIDs")
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/652>
This commit is contained in:
Igor V. Kovalenko 2021-10-22 08:44:19 +03:00
parent 44ac675a8b
commit c0ad3efc18

View file

@ -1491,6 +1491,7 @@ static void adapter_free(pa_bluetooth_adapter *a) {
if (d->adapter == a)
device_set_adapter(d, NULL);
pa_hashmap_free(a->uuids);
pa_xfree(a->path);
pa_xfree(a->address);
pa_xfree(a);