mirror of https://github.com/MidnightCommander/mc
Ticket #2085: replacement of deprecated GLib functions.
g_tree_traverse() is deprecated. g_tree_foreach() is used instead. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
f5ae2bfedd
commit
9dc0a54ba1
|
@ -134,7 +134,7 @@ mc_defines_destroy (gpointer key, gpointer value, gpointer data)
|
|||
static void
|
||||
destroy_defines (GTree ** defines)
|
||||
{
|
||||
g_tree_traverse (*defines, mc_defines_destroy, G_POST_ORDER, NULL);
|
||||
g_tree_foreach (*defines, mc_defines_destroy, NULL);
|
||||
g_tree_destroy (*defines);
|
||||
*defines = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue