---
src/handsfree-audio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index db65971..c99d65b 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -194,10 +194,10 @@ static void card_unregister(struct ofono_handsfree_card
*card)
{
DBusConnection *conn = ofono_dbus_get_connection();
- g_dbus_unregister_interface(conn, card->path, HFP_AUDIO_CARD_INTERFACE);
-
emit_card_removed(card);
+ g_dbus_unregister_interface(conn, card->path, HFP_AUDIO_CARD_INTERFACE);
+
g_free(card->path);
card->path = NULL;
}
--
1.7.11.7
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono