Commit e344a521 authored by Richard Hult's avatar Richard Hult Committed by Richard Hult

Setup release pools to plug two leaks, patch from Erik van Pienbroek,

2007-02-18  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c:
	(gdk_window_quartz_process_all_updates),
	(_gdk_windowing_window_destroy): Setup release pools to plug two leaks,
	patch from Erik van Pienbroek, fixes bug #396649.

svn path=/trunk/; revision=17325
parent fe5f64ec
2007-02-18 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c:
(gdk_window_quartz_process_all_updates),
(_gdk_windowing_window_destroy): Setup release pools to plug two leaks,
patch from Erik van Pienbroek, fixes bug #396649.
2007-02-18 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkevents-quartz.c: Add stub for
......
......@@ -275,6 +275,8 @@ gdk_window_quartz_process_all_updates (void)
gdk_region_destroy (private->update_area);
private->update_area = NULL;
GDK_QUARTZ_ALLOC_POOL;
for (i = 0; i < n_rects; i++)
{
[impl->view setNeedsDisplayInRect:NSMakeRect (rects[i].x, rects[i].y,
......@@ -283,6 +285,8 @@ gdk_window_quartz_process_all_updates (void)
[impl->view displayIfNeeded];
GDK_QUARTZ_RELEASE_POOL;
g_free (rects);
}
......@@ -731,10 +735,14 @@ _gdk_windowing_window_destroy (GdkWindow *window,
_gdk_quartz_update_mouse_window (_gdk_root);
}
GDK_QUARTZ_ALLOC_POOL;
if (impl->toplevel)
[impl->toplevel close];
else if (impl->view)
[impl->view release];
GDK_QUARTZ_RELEASE_POOL;
}
}
......
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