handsfree_audio: Call driver remove() on removal

This commit is contained in:
Denis Kenzior 2013-03-18 14:06:56 -05:00
parent 5d0ba72d04
commit 32ea0c683a
1 changed files with 3 additions and 0 deletions

View File

@ -410,6 +410,9 @@ void ofono_handsfree_card_remove(struct ofono_handsfree_card *card)
g_free(card->remote);
g_free(card->local);
if (card->driver && card->driver->remove)
card->driver->remove(card);
g_free(card);
}