Ref the cursor in the cached case.

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

	* gdk/quartz/gdkcursor-quartz.c (gdk_cursor_new_for_display): Ref
	the cursor in the cached case.

svn path=/trunk/; revision=18490
This commit is contained in:
Richard Hult
2007-07-18 09:52:25 +00:00
committed by Richard Hult
parent 07420f8d75
commit 032b0aab6b
2 changed files with 6 additions and 1 deletions

View File

@ -211,7 +211,7 @@ gdk_cursor_new_for_display (GdkDisplay *display,
nscursor = [NSCursor pointingHandCursor];
break;
default:
return create_builtin_cursor (cursor_type);
return gdk_cursor_ref (create_builtin_cursor (cursor_type));
}
[nscursor retain];