From: John Ernberg <[email protected]>
---
src/network.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/network.c b/src/network.c
index 8ad11d3..a3d41a7 100644
--- a/src/network.c
+++ b/src/network.c
@@ -746,8 +746,7 @@ static gboolean update_operator_list(struct ofono_netreg
*netreg, int total,
}
}
- g_slist_foreach(compressed, (GFunc)g_free, NULL);
- g_slist_free(compressed);
+ g_slist_free_full(compressed, g_free);
if (n)
n = g_slist_reverse(n);
--
1.9.1
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono