Hi:
On Tue, Feb 26, 2013 at 6:04 PM, Claudio Takahasi
<claudio.takahasi(a)openbossa.org> wrote:
---
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
Ignore this patch.
I messed up the object path name and interface.
Claudio.