Do not use g_list_free_full
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 4 Jan 2016 22:04:23 +0000 (17:04 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 5 Jan 2016 21:08:28 +0000 (16:08 -0500)
Babeltrace supports glib all the way back to 2.22 and g_list_free_full
was introduced in 2.28.0 (and backported to 2.27.2).

The replacement is equivalent to the behaviour offered by a modern glib.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/visitor.c

index 9b65ed58e62ce29b721dcb3ffc78808f87714a91..704a80488295fdde025083c00f887551cd122524 100644 (file)
@@ -724,7 +724,8 @@ end:
                g_free(name_copy);
        }
        if (path_tokens) {
-               g_list_free_full(path_tokens, free);
+               g_list_foreach(path_tokens, (GFunc) free, NULL);
+               g_list_free(path_tokens);
        }
        return ret;
 error:
This page took 0.024925 seconds and 4 git commands to generate.