aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-3gpp.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-01-05 20:01:05 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:46 +0100
commit48d5ac66824848ee31fcbaeb9600d5e276b3ab70 (patch)
tree8b4ddc9e4429be47b5c402ca969b08ba07e77a7f /src/mm-iface-modem-3gpp.c
parenta0f7db513f712316636ddfb31a6fcec569c9f54b (diff)
core: use g_list_free_full() when possible
Diffstat (limited to 'src/mm-iface-modem-3gpp.c')
-rw-r--r--src/mm-iface-modem-3gpp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mm-iface-modem-3gpp.c b/src/mm-iface-modem-3gpp.c
index cc3cf76d..c5a68756 100644
--- a/src/mm-iface-modem-3gpp.c
+++ b/src/mm-iface-modem-3gpp.c
@@ -916,8 +916,7 @@ disconnect_3gpp_bearers_context_complete_and_free (Disconnect3gppBearersContext
if (ctx->current)
g_object_unref (ctx->current);
- g_list_foreach (ctx->bearers, (GFunc)g_object_unref, NULL);
- g_list_free (ctx->bearers);
+ g_list_free_full (ctx->bearers, (GDestroyNotify) g_object_unref);
g_object_unref (ctx->result);
g_free (ctx);
}