mirror of git://git.sysmocom.de/ofono
handsfree_audio: Call driver remove() on removal
This commit is contained in:
parent
5d0ba72d04
commit
32ea0c683a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue