hfp_ag: Be extra pedantic on plugin cleanup

This commit is contained in:
Denis Kenzior 2011-04-19 16:49:33 -05:00
parent 888218680d
commit c9250abdcf
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ static int hfp_ag_init()
static void hfp_ag_exit() static void hfp_ag_exit()
{ {
__ofono_modemwatch_remove(modemwatch_id); __ofono_modemwatch_remove(modemwatch_id);
g_list_free(modems);
if (server) { if (server) {
bluetooth_unregister_server(server); bluetooth_unregister_server(server);