mirror of git://git.sysmocom.de/ofono
stemodem: Use g_slist_free_full
This commit is contained in:
parent
397102bdc5
commit
3f12d06b20
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue