Setup autorelease pool, plugs occasional leak on leopard.

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

	* gdk/quartz/gdkwindow-quartz.c:
	(gdk_window_impl_quartz_process_updates): Setup autorelease pool,
	plugs occasional leak on leopard.

svn path=/trunk/; revision=18954
This commit is contained in:
Richard Hult 2007-10-31 10:14:53 +00:00 committed by Richard Hult
parent 89230024e6
commit 75aabd416d
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-10-31 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c:
(gdk_window_impl_quartz_process_updates): Setup autorelease pool,
plugs occasional leak on leopard.
2007-10-31 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzView.c: Fix build warning (trackingRect should be

View File

@ -369,8 +369,10 @@ gdk_window_impl_quartz_process_updates (GdkPaintable *paintable,
if (private->update_area)
{
GDK_QUARTZ_ALLOC_POOL;
gdk_window_quartz_process_updates_internal ((GdkWindow *) private);
update_windows = g_slist_remove (update_windows, private);
GDK_QUARTZ_RELEASE_POOL;
}
}