diff options
author | John Ernberg <john.ernberg@actia.se> | 2016-04-22 13:10:06 +0000 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2016-04-22 15:22:07 -0500 |
commit | 3f12d06b2006d0fe9c2b46ae92978514af9b749c (patch) | |
tree | 09908b29f53dadb09de39bd1f5da7ec6187acbcc | |
parent | 397102bdc5b24773b2a11d860cf7c095c5fd731d (diff) | |
download | ofono-3f12d06b2006d0fe9c2b46ae92978514af9b749c.tar.gz |
stemodem: Use g_slist_free_full
-rw-r--r-- | drivers/stemodem/voicecall.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c index 1cbf51a6..356ab7c6 100644 --- a/drivers/stemodem/voicecall.c +++ b/drivers/stemodem/voicecall.c @@ -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); |