From: Jonathan Rajotte Date: Mon, 4 Jan 2016 22:04:23 +0000 (-0500) Subject: Do not use g_list_free_full X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=e0c22560d5b5d0346d798ee0115e94e6455058a8 Do not use g_list_free_full 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 Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/ir/visitor.c b/formats/ctf/ir/visitor.c index 9b65ed58..704a8048 100644 --- a/formats/ctf/ir/visitor.c +++ b/formats/ctf/ir/visitor.c @@ -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: