diff options
author | Javier Jardón <jjardon@gnome.org> | 2012-01-02 04:20:59 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2012-01-05 04:22:43 +0100 |
commit | d005b013196bc8b69474f718a5817baf9aec99af (patch) | |
tree | 5b6151756a0b1b7743a28ff245d16e0004dc40f6 /gtk/gtkwidget.c | |
parent | 6ad6f719c6b2fc7cf797c86b406f4e61d9fca4d1 (diff) | |
download | gtk+-d005b013196bc8b69474f718a5817baf9aec99af.tar.gz |
gtk/*: Use g_list_free_full() convenience function
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r-- | gtk/gtkwidget.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index fe790f9958..a830741129 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -12030,8 +12030,7 @@ gtk_widget_buildable_parser_finished (GtkBuildable *buildable, } g_object_unref (relation_set); - g_slist_foreach (atk_relations, (GFunc)free_relation, NULL); - g_slist_free (atk_relations); + g_slist_free_full (atk_relations, (GDestroyNotify) free_relation); g_object_set_qdata (G_OBJECT (buildable), quark_builder_atk_relations, NULL); } @@ -12438,8 +12437,7 @@ gtk_widget_buildable_custom_finished (GtkBuildable *buildable, else g_warning ("accessibility action on a widget that does not implement AtkAction"); - g_slist_foreach (a11y_data->actions, (GFunc)free_action, NULL); - g_slist_free (a11y_data->actions); + g_slist_free_full (a11y_data->actions, (GDestroyNotify) free_action); } if (a11y_data->relations) |