Commit 1907d27d authored by Richard Hult's avatar Richard Hult Committed by Richard Hult
Browse files

Use an autorelease pool.

2007-10-24  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c: (update_toplevel_order): Use an
	autorelease pool.

svn path=/trunk/; revision=18946
parent de546313
2007-10-24 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c: (update_toplevel_order): Use an
autorelease pool.
2007-10-24 Johan Dahlin <jdahlin@async.com.br> 2007-10-24 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtk-builder-convert * gtk/gtk-builder-convert
......
...@@ -1371,6 +1371,8 @@ update_toplevel_order (void) ...@@ -1371,6 +1371,8 @@ update_toplevel_order (void)
if (root_impl->sorted_children) if (root_impl->sorted_children)
return; return;
GDK_QUARTZ_ALLOC_POOL;
enumerator = [[NSApp orderedWindows] objectEnumerator]; enumerator = [[NSApp orderedWindows] objectEnumerator];
while ((nswindow = [enumerator nextObject])) while ((nswindow = [enumerator nextObject]))
{ {
...@@ -1383,6 +1385,8 @@ update_toplevel_order (void) ...@@ -1383,6 +1385,8 @@ update_toplevel_order (void)
toplevels = g_list_prepend (toplevels, window); toplevels = g_list_prepend (toplevels, window);
} }
GDK_QUARTZ_RELEASE_POOL;
root_impl->sorted_children = g_list_reverse (toplevels); root_impl->sorted_children = g_list_reverse (toplevels);
} }
......
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