Release the pool in all cases. (move_resize_window_internal): Surround by

2006-07-09  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c (gdk_window_new): Release the pool
	in all cases.
	(move_resize_window_internal): Surround by alloc/release pool.
	Patch from Brian Tarricone, fixes bug #347018.
This commit is contained in:
Richard Hult 2006-07-09 07:50:44 +00:00 committed by Richard Hult
parent a6497203fd
commit faed5298bd
3 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2006-07-09 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c (gdk_window_new): Release the pool
in all cases.
(move_resize_window_internal): Surround by alloc/release pool.
Patch from Brian Tarricone, fixes bug #347018.
2006-07-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (update_label_and_image): Don't

View File

@ -1,3 +1,10 @@
2006-07-09 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c (gdk_window_new): Release the pool
in all cases.
(move_resize_window_internal): Surround by alloc/release pool.
Patch from Brian Tarricone, fixes bug #347018.
2006-07-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (update_label_and_image): Don't

View File

@ -370,6 +370,7 @@ gdk_window_new (GdkWindow *parent,
break;
default:
g_warning (G_STRLOC "cannot make windows of type %d", private->window_type);
GDK_QUARTZ_RELEASE_POOL;
return NULL;
}
@ -659,8 +660,13 @@ move_resize_window_internal (GdkWindow *window,
GdkWindowObject *private = (GdkWindowObject *)window;
GdkWindowImplQuartz *impl;
GDK_QUARTZ_ALLOC_POOL;
if (GDK_WINDOW_DESTROYED (window))
return;
{
GDK_QUARTZ_RELEASE_POOL;
return;
}
impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
@ -698,6 +704,8 @@ move_resize_window_internal (GdkWindow *window,
[impl->view setNeedsDisplay:YES];
}
}
GDK_QUARTZ_RELEASE_POOL;
}
void