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

Plug a leak.

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

	* gdk/quartz/gdkdisplay-quartz.c: (gdk_display_get_name): Plug a leak.

svn path=/trunk/; revision=17461
parent 5b14b85c
2007-03-10 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkdisplay-quartz.c: (gdk_display_get_name): Plug a leak.
2007-03-10 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzView.c: Remove unneccesary exposure mask check.
......
......@@ -75,8 +75,12 @@ gdk_display_get_name (GdkDisplay *display)
{
static gchar *display_name = NULL;
if (! display_name)
display_name = g_strdup ([[[NSHost currentHost] name] UTF8String]);
if (!display_name)
{
GDK_QUARTZ_ALLOC_POOL;
display_name = g_strdup ([[[NSHost currentHost] name] UTF8String]);
GDK_QUARTZ_RELEASE_POOL;
}
return display_name;
}
......
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