summaryrefslogtreecommitdiff
path: root/gtk/gtkquery.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2012-01-02 04:20:59 +0100
committerJavier Jardón <jjardon@gnome.org>2012-01-05 04:22:43 +0100
commitd005b013196bc8b69474f718a5817baf9aec99af (patch)
tree5b6151756a0b1b7743a28ff245d16e0004dc40f6 /gtk/gtkquery.c
parent6ad6f719c6b2fc7cf797c86b406f4e61d9fca4d1 (diff)
downloadgtk+-d005b013196bc8b69474f718a5817baf9aec99af.tar.gz
gtk/*: Use g_list_free_full() convenience function
Diffstat (limited to 'gtk/gtkquery.c')
-rw-r--r--gtk/gtkquery.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkquery.c b/gtk/gtkquery.c
index 6b17c74aee..74879e0e91 100644
--- a/gtk/gtkquery.c
+++ b/gtk/gtkquery.c
@@ -121,8 +121,7 @@ _gtk_query_set_mime_types (GtkQuery *query,
GList *l;
gchar *mime_type;
- g_list_foreach (query->priv->mime_types, (GFunc)g_free, NULL);
- g_list_free (query->priv->mime_types);
+ g_list_free_full (query->priv->mime_types, g_free);
query->priv->mime_types = NULL;
for (l = mime_types; l; l = l->next)