Plug leak.

2007-07-14  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkevents-quartz.c:
	(_gdk_quartz_events_update_cursor): Plug leak.

svn path=/trunk/; revision=18468
This commit is contained in:
Richard Hult 2007-07-14 12:14:36 +00:00 committed by Richard Hult
parent ed82448b9a
commit eb52c4f1f8
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-07-14 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkevents-quartz.c:
(_gdk_quartz_events_update_cursor): Plug leak.
2007-07-13 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkprivate-quartz.h:

View File

@ -911,11 +911,15 @@ _gdk_quartz_events_update_cursor (GdkWindow *window)
private = private->parent;
}
GDK_QUARTZ_ALLOC_POOL;
if (!nscursor)
nscursor = [NSCursor arrowCursor];
if ([NSCursor currentCursor] != nscursor)
[nscursor set];
GDK_QUARTZ_RELEASE_POOL;
}
/* Translates coordinates from an ancestor window + coords, to