diff --git a/ChangeLog b/ChangeLog index c2303e69a6..eaa8ed445e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-24 Richard Hult + + * gdk/quartz/gdkwindow-quartz.c: (update_toplevel_order): Use an + autorelease pool. + 2007-10-24 Johan Dahlin * gtk/gtk-builder-convert diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c index e63491827e..f5bfd2d219 100644 --- a/gdk/quartz/gdkwindow-quartz.c +++ b/gdk/quartz/gdkwindow-quartz.c @@ -1371,6 +1371,8 @@ update_toplevel_order (void) if (root_impl->sorted_children) return; + GDK_QUARTZ_ALLOC_POOL; + enumerator = [[NSApp orderedWindows] objectEnumerator]; while ((nswindow = [enumerator nextObject])) { @@ -1383,6 +1385,8 @@ update_toplevel_order (void) toplevels = g_list_prepend (toplevels, window); } + GDK_QUARTZ_RELEASE_POOL; + root_impl->sorted_children = g_list_reverse (toplevels); }