gdk/*: Use g_list_free_full convenience function

This commit is contained in:
Javier Jardón
2012-01-03 02:18:50 +01:00
parent 08a2b910e5
commit 24360a8076
8 changed files with 13 additions and 26 deletions

View File

@ -274,8 +274,7 @@ gdk_wayland_display_finalize (GObject *object)
g_object_unref (display_wayland->keymap);
/* input GdkDevice list */
g_list_foreach (display_wayland->input_devices, (GFunc) g_object_unref, NULL);
g_list_free (display_wayland->input_devices);
g_list_free_full (display_wayland->input_devices, g_object_unref);
g_object_unref (display_wayland->screen);