From d607a461ce5987b1f94bc20124df8dcc0999501e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= Date: Tue, 25 Aug 2020 16:43:03 +0200 Subject: [PATCH] bluez5: backend-hsphfpd: Fix crash when switching profile to HFP --- spa/plugins/bluez5/backend-hsphfpd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spa/plugins/bluez5/backend-hsphfpd.c b/spa/plugins/bluez5/backend-hsphfpd.c index 16be482ae..906266b3e 100644 --- a/spa/plugins/bluez5/backend-hsphfpd.c +++ b/spa/plugins/bluez5/backend-hsphfpd.c @@ -811,6 +811,8 @@ static void hsphfpd_audio_acquire_reply(DBusPendingCall *pending, void *user_dat const char *agent_path; DBusError error; + dbus_error_init(&error); + backend->acquire_in_progress = false; r = dbus_pending_call_steal_reply(pending);