mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
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
This commit is contained in:
parent
5b14b85c3a
commit
feabd0d76d
@ -1,3 +1,7 @@
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user