From: John Ernberg <[email protected]>
---
src/modem.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/modem.c b/src/modem.c
index a89fa48..b1e8d3e 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -2083,12 +2083,10 @@ static void modem_unregister(struct ofono_modem *modem)
modem->sim_watch = 0;
modem->sim_ready_watch = 0;
- g_slist_foreach(modem->interface_list, (GFunc) g_free, NULL);
- g_slist_free(modem->interface_list);
+ g_slist_free_full(modem->interface_list, g_free);
modem->interface_list = NULL;
- g_slist_foreach(modem->feature_list, (GFunc) g_free, NULL);
- g_slist_free(modem->feature_list);
+ g_slist_free_full(modem->feature_list, g_free);
modem->feature_list = NULL;
if (modem->timeout) {
--
1.9.1
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono