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:
Andrew Borodin 2010-03-05 20:49:55 +03:00
parent f5ae2bfedd
commit 9dc0a54ba1

View File

@ -134,7 +134,7 @@ mc_defines_destroy (gpointer key, gpointer value, gpointer data)
static void static void
destroy_defines (GTree ** defines) 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); g_tree_destroy (*defines);
*defines = NULL; *defines = NULL;
} }