mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-15 22:05:22 -05:00
bluez5-util: add destroy function
Add a destroy function to the transport that is called before freeing the transport. Useful for cleaning up extra userdata.
This commit is contained in:
parent
2251085dda
commit
d7199bafea
2 changed files with 4 additions and 0 deletions
|
|
@ -205,6 +205,8 @@ void pa_bluetooth_transport_unlink(pa_bluetooth_transport *t) {
|
|||
void pa_bluetooth_transport_free(pa_bluetooth_transport *t) {
|
||||
pa_assert(t);
|
||||
|
||||
if (t->destroy)
|
||||
t->destroy(t);
|
||||
pa_bluetooth_transport_unlink(t);
|
||||
|
||||
pa_xfree(t->owner);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue