gdk/*: Use g_list_free_full convenience function
This commit is contained in:
@ -308,8 +308,8 @@ gdk_x11_device_manager_xi_dispose (GObject *object)
|
||||
GdkX11DeviceManagerXI *device_manager;
|
||||
|
||||
device_manager = GDK_X11_DEVICE_MANAGER_XI (object);
|
||||
g_list_foreach (device_manager->devices, (GFunc) g_object_unref, NULL);
|
||||
g_list_free (device_manager->devices);
|
||||
|
||||
g_list_free_full (device_manager->devices, g_object_unref);
|
||||
device_manager->devices = NULL;
|
||||
|
||||
if (device_manager->id_table != NULL)
|
||||
|
||||
@ -1767,12 +1767,10 @@ gdk_x11_display_finalize (GObject *object)
|
||||
g_slist_free (display_x11->event_types);
|
||||
|
||||
/* input GdkDevice list */
|
||||
g_list_foreach (display_x11->input_devices, (GFunc) g_object_unref, NULL);
|
||||
g_list_free (display_x11->input_devices);
|
||||
g_list_free_full (display_x11->input_devices, g_object_unref);
|
||||
|
||||
/* input GdkWindow list */
|
||||
g_list_foreach (display_x11->input_windows, (GFunc) g_free, NULL);
|
||||
g_list_free (display_x11->input_windows);
|
||||
g_list_free_full (display_x11->input_windows, g_free);
|
||||
|
||||
/* Free all GdkScreens */
|
||||
for (i = 0; i < ScreenCount (display_x11->xdisplay); i++)
|
||||
|
||||
Reference in New Issue
Block a user