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

@ -308,8 +308,7 @@ gdk_quartz_display_finalize (GObject *object)
{
GdkQuartzDisplay *display_quartz = GDK_QUARTZ_DISPLAY (object);
g_list_foreach (display_quartz->input_devices, (GFunc) g_object_unref, NULL);
g_list_free (display_quartz->input_devices);
g_list_free_full (display_quartz->input_devices, g_object_unref);
G_OBJECT_CLASS (gdk_quartz_display_parent_class)->finalize (object);
}