diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-01-05 20:01:16 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:46 +0100 |
commit | 20acb274dcd1924d64b56021fd0c3125c95d9fee (patch) | |
tree | 46b2d9135da4071bb420c33ab972c00a5efaf324 /libmm-glib | |
parent | 48d5ac66824848ee31fcbaeb9600d5e276b3ab70 (diff) |
libmm-glib: use g_list_free_full() when possible
Diffstat (limited to 'libmm-glib')
-rw-r--r-- | libmm-glib/mm-modem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libmm-glib/mm-modem.c b/libmm-glib/mm-modem.c index 35ad65cd..2b9fbc1e 100644 --- a/libmm-glib/mm-modem.c +++ b/libmm-glib/mm-modem.c @@ -874,8 +874,7 @@ typedef struct { static void bearer_object_list_free (GList *list) { - g_list_foreach (list, (GFunc)g_object_unref, NULL); - g_list_free (list); + g_list_free_full (list, (GDestroyNotify) g_object_unref); } static void |