From: John Ernberg <[email protected]>
---
src/handsfree.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/handsfree.c b/src/handsfree.c
index 31b9d7d..3b518fd 100644
--- a/src/handsfree.c
+++ b/src/handsfree.c
@@ -687,8 +687,7 @@ static void handsfree_unregister(struct ofono_atom *atom)
__ofono_dbus_pending_reply(&hf->pending, reply);
}
- g_slist_foreach(hf->subscriber_numbers, (GFunc) g_free, NULL);
- g_slist_free(hf->subscriber_numbers);
+ g_slist_free_full(hf->subscriber_numbers, g_free);
hf->subscriber_numbers = NULL;
ofono_modem_remove_interface(modem, OFONO_HANDSFREE_INTERFACE);
--
1.9.1
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono