diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-01-05 20:01:30 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:46 +0100 |
commit | e8aeb59293063cb4cfedddcaf27da665f9d968e0 (patch) | |
tree | c9b0c4097f8ccf28e73f144b426c3b2d72bfc8d8 /cli/mmcli-modem-3gpp.c | |
parent | 20acb274dcd1924d64b56021fd0c3125c95d9fee (diff) |
cli: use g_list_free_full() when possible
Diffstat (limited to 'cli/mmcli-modem-3gpp.c')
-rw-r--r-- | cli/mmcli-modem-3gpp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/mmcli-modem-3gpp.c b/cli/mmcli-modem-3gpp.c index d1ef0796..598d1cf2 100644 --- a/cli/mmcli-modem-3gpp.c +++ b/cli/mmcli-modem-3gpp.c @@ -170,8 +170,7 @@ scan_process_reply (GList *result, for (l = result; l; l = g_list_next (l)) { print_network_info ((MMModem3gppNetwork *)(l->data)); } - g_list_foreach (result, (GFunc)mm_modem_3gpp_network_free, NULL); - g_list_free (result); + g_list_free_full (result, (GDestroyNotify) mm_modem_3gpp_network_free); } g_print ("\n"); } |