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

@ -823,8 +823,7 @@ gdk_device_manager_core_finalize (GObject *object)
device_manager_core = GDK_DEVICE_MANAGER_CORE (object);
g_list_foreach (device_manager_core->devices, free_device, NULL);
g_list_free (device_manager_core->devices);
g_list_free_full (device_manager_core->devices, free_device);
G_OBJECT_CLASS (gdk_device_manager_core_parent_class)->finalize (object);
}

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);