---
 plugins/hfp_hf_bluez5.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index c3acd40..fb1644f 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -272,6 +272,9 @@ static int hfp_disable(struct ofono_modem *modem)
        fd = g_io_channel_unix_get_fd(channel);
        shutdown(fd, SHUT_RDWR);
 
+       ofono_handsfree_card_remove(hfp->card);
+       hfp->card = NULL;
+
        g_at_chat_unref(info->chat);
        info->chat = NULL;
 
-- 
1.7.11.7

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to