summaryrefslogtreecommitdiff
path: root/netspeed/src
diff options
context:
space:
mode:
Diffstat (limited to 'netspeed/src')
-rw-r--r--netspeed/src/backend.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/netspeed/src/backend.c b/netspeed/src/backend.c
index bc5c91f0..a3418f82 100644
--- a/netspeed/src/backend.c
+++ b/netspeed/src/backend.c
@@ -122,8 +122,7 @@ get_default_route(void)
void
free_devices_list(GList *list)
{
- g_list_foreach(list, (GFunc)g_free, NULL);
- g_list_free(list);
+ g_list_free_full (list, g_free);
}