diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/yelp-main.c | 10 |
2 files changed, 9 insertions, 5 deletions
@@ -1,3 +1,7 @@ +2005-02-23 Paolo Borelli <pborelli@katamail.com> + + * src/yelp-main.c (main): do not leak display_name. + 2005-02-23 Kjartan Maraas <kmaraas@gnome.org> * src/yelp-db-pager.c: (node_get_title): diff --git a/src/yelp-main.c b/src/yelp-main.c index 65bd53de..15d22fe3 100644 --- a/src/yelp-main.c +++ b/src/yelp-main.c @@ -307,13 +307,13 @@ int main (int argc, char **argv) { GnomeProgram *program; + gchar *display_name; CORBA_Object factory; gchar *url = NULL; GnomeClient *client; gboolean session_started = FALSE; const gchar **args; - - + bindtextdomain(GETTEXT_PACKAGE, GNOMELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); @@ -328,9 +328,9 @@ main (int argc, char **argv) /* Need to set this to the canonical DISPLAY value, since that's where we're registering per-display components */ - bonobo_activation_set_activation_env_value - ("DISPLAY", - gdk_display_get_name (gdk_display_get_default ()) ); + display_name = gdk_display_get_name (gdk_display_get_default ()); + bonobo_activation_set_activation_env_value ("DISPLAY", display_name); + g_free (display_name); gnome_vfs_init (); |