Commit 99d01399 authored by Christian Hergert's avatar Christian Hergert Committed by Ignacio Casal Quinteiro

quartz: release linked list as we process it

Rather than performing the list iteration and the list free as separate
steps, free the list link while iterating.
parent ff4dcf5f
Pipeline #55067 passed with stage
in 8 minutes and 28 seconds
......@@ -430,7 +430,6 @@ _gdk_quartz_display_before_process_all_updates (GdkDisplay *display)
void
_gdk_quartz_display_after_process_all_updates (GdkDisplay *display)
{
GSList *old_update_nswindows = update_nswindows;
GSList *tmp_list = update_nswindows;
update_nswindows = NULL;
......@@ -448,11 +447,9 @@ _gdk_quartz_display_after_process_all_updates (GdkDisplay *display)
#endif
[nswindow release];
tmp_list = tmp_list->next;
tmp_list = g_slist_remove_link (tmp_list, tmp_list);
}
g_slist_free (old_update_nswindows);
in_process_all_updates = FALSE;
if (gdk_quartz_osx_version() >= GDK_OSX_EL_CAPITAN)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment