[PATCH 2/2] bluetooth: shutdown segfault fix: remove unnecessary transport deletion statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A bluetooth transport will be garbage collected automatically
by the pa_bluetooth_discovery_unref function.
---
 src/modules/bluetooth/backend-ofono.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/modules/bluetooth/backend-ofono.c b/src/modules/bluetooth/backend-ofono.c
index 755df9e8..5fd7e4ce 100644
--- a/src/modules/bluetooth/backend-ofono.c
+++ b/src/modules/bluetooth/backend-ofono.c
@@ -111,9 +111,6 @@ static struct hf_audio_card *hf_audio_card_new(pa_bluetooth_backend *backend, co
 static void hf_audio_card_free(struct hf_audio_card *card) {
     pa_assert(card);
 
-    if (card->transport)
-        pa_bluetooth_transport_free(card->transport);
-
     pa_xfree(card->path);
     pa_xfree(card->remote_address);
     pa_xfree(card->local_address);
-- 
2.11.0



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux