From: John Ernberg <[email protected]>
---
drivers/stemodem/voicecall.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c
index 1cbf51a..356ab7c 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);
--
1.9.1
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono