summaryrefslogtreecommitdiff
path: root/gtk/gtkimmodule.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-07-31 17:57:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-07-31 22:23:35 -0400
commit9f24b54786d8371f77f9ba0c4475ed82b2e0e68f (patch)
tree8ac32783559f12897ce4e5bbc350ed8aab77e67e /gtk/gtkimmodule.c
parent9dd2645c4a591e154c2e1fe9e6bd5677c56e928a (diff)
downloadgtk+-9f24b54786d8371f77f9ba0c4475ed82b2e0e68f.tar.gz
Code cleanup
Use g_slist_free_full more consistently. This commit just converts the obvious cases where g_slist_forall is directly followed by g_slist_free.
Diffstat (limited to 'gtk/gtkimmodule.c')
-rw-r--r--gtk/gtkimmodule.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gtk/gtkimmodule.c b/gtk/gtkimmodule.c
index 51044ebcb4..35398fe733 100644
--- a/gtk/gtkimmodule.c
+++ b/gtk/gtkimmodule.c
@@ -490,14 +490,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
if (have_error)
{
- GSList *tmp_list = infos;
- while (tmp_list)
- {
- free_info (tmp_list->data);
- tmp_list = tmp_list->next;
- }
- g_slist_free (infos);
-
+ g_slist_free_full (infos, (GDestroyNotify)free_info);
g_object_unref (module);
}
else if (module)