handsfree: Use g_slist_free_full

This commit is contained in:
John Ernberg 2016-04-22 13:10:06 +00:00 committed by Denis Kenzior
parent 3887e33e00
commit 1e5725993b
1 changed files with 1 additions and 2 deletions

View File

@ -687,8 +687,7 @@ static void handsfree_unregister(struct ofono_atom *atom)
__ofono_dbus_pending_reply(&hf->pending, reply);
}
g_slist_foreach(hf->subscriber_numbers, (GFunc) g_free, NULL);
g_slist_free(hf->subscriber_numbers);
g_slist_free_full(hf->subscriber_numbers, g_free);
hf->subscriber_numbers = NULL;
ofono_modem_remove_interface(modem, OFONO_HANDSFREE_INTERFACE);