stemodem: 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 397102bdc5
commit 3f12d06b20
1 changed files with 1 additions and 2 deletions

View File

@ -574,8 +574,7 @@ static void ste_voicecall_remove(struct ofono_voicecall *vc)
{
struct voicecall_data *vd = ofono_voicecall_get_data(vc);
g_slist_foreach(vd->calls, (GFunc) g_free, NULL);
g_slist_free(vd->calls);
g_slist_free_full(vd->calls, g_free);
ofono_voicecall_set_data(vc, NULL);