aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-simple.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-simple.c
parenta0f7db513f712316636ddfb31a6fcec569c9f54b (diff)
core: use g_list_free_full() when possible
Diffstat (limited to 'src/mm-iface-modem-simple.c')
-rw-r--r--src/mm-iface-modem-simple.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mm-iface-modem-simple.c b/src/mm-iface-modem-simple.c
index 635e127d..e704489e 100644
--- a/src/mm-iface-modem-simple.c
+++ b/src/mm-iface-modem-simple.c
@@ -442,10 +442,7 @@ disconnection_context_free (DisconnectionContext *ctx)
g_free (ctx->bearer_path);
if (ctx->current)
g_object_unref (ctx->current);
- if (ctx->bearers) {
- 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_free (ctx);
}