diff options
author | Paolo Borelli <pborelli@katamail.com> | 2005-02-23 19:07:05 +0000 |
---|---|---|
committer | Paolo Borelli <pborelli@src.gnome.org> | 2005-02-23 19:07:05 +0000 |
commit | 65a253babe66471b3432365d7e2c8b428e843ca7 (patch) | |
tree | 2f4755ea666158158ef3c3666cedb502d6e17e5d | |
parent | 160397b14c532bb8dc99cf1c7c0132d039312c27 (diff) | |
download | yelp-65a253babe66471b3432365d7e2c8b428e843ca7.tar.gz |
do not leak display_name.
2005-02-23 Paolo Borelli <pborelli@katamail.com>
* src/yelp-main.c (main): do not leak display_name.
-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 (); |