diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-01-05 20:01:05 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:46 +0100 |
commit | 48d5ac66824848ee31fcbaeb9600d5e276b3ab70 (patch) | |
tree | 8b4ddc9e4429be47b5c402ca969b08ba07e77a7f /src/mm-modem-helpers.c | |
parent | a0f7db513f712316636ddfb31a6fcec569c9f54b (diff) |
core: use g_list_free_full() when possible
Diffstat (limited to 'src/mm-modem-helpers.c')
-rw-r--r-- | src/mm-modem-helpers.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index 53aebb82..ded11b03 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -57,8 +57,7 @@ mm_3gpp_network_info_free (MM3gppNetworkInfo *info) void mm_3gpp_network_info_list_free (GList *info_list) { - g_list_foreach (info_list, (GFunc)mm_3gpp_network_info_free, NULL); - g_list_free (info_list); + g_list_free_full (info_list, (GDestroyNotify) mm_3gpp_network_info_free); } static MMModemAccessTechnology @@ -318,8 +317,7 @@ mm_3gpp_pdp_context_free (MM3gppPdpContext *pdp) void mm_3gpp_pdp_context_list_free (GList *list) { - g_list_foreach (list, (GFunc)mm_3gpp_pdp_context_free, NULL); - g_list_free (list); + g_list_free_full (list, (GDestroyNotify) mm_3gpp_pdp_context_free); } static gint |