mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
bluetooth: memory leak, actually free discovery struct itself
This commit is contained in:
parent
f65b276db3
commit
9ee6a41491
1 changed files with 2 additions and 0 deletions
|
|
@ -773,6 +773,8 @@ void pa_bluetooth_discovery_unref(pa_bluetooth_discovery *y) {
|
||||||
|
|
||||||
if (y->core)
|
if (y->core)
|
||||||
pa_shared_remove(y->core, "bluetooth-discovery");
|
pa_shared_remove(y->core, "bluetooth-discovery");
|
||||||
|
|
||||||
|
pa_xfree(y);
|
||||||
}
|
}
|
||||||
|
|
||||||
void pa_bluetooth_discovery_sync(pa_bluetooth_discovery *y) {
|
void pa_bluetooth_discovery_sync(pa_bluetooth_discovery *y) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue