gdk/*: Use g_list_free_full convenience function
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user