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
This commit is contained in:
Richard Hult 2007-10-24 12:56:28 +00:00 committed by Richard Hult
parent de5463131e
commit 1907d27d8c
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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)
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);
} }