[Xfce4-commits] <xfce4-xkb-plugin:master> Fix memory leak due to commit 51e472ba.

Jérôme Guelfucci noreply at xfce.org
Sat Apr 30 19:50:01 CEST 2011


Updating branch refs/heads/master
         to 987a41815880496149e89ff6f675c52dfbd2289d (commit)
       from d1586e84d41ea4ef2469f9604d7e6854aa0bcbad (commit)

commit 987a41815880496149e89ff6f675c52dfbd2289d
Author: Mikhail Efremov <sem at altlinux.org>
Date:   Sat Apr 30 18:47:06 2011 +0200

    Fix memory leak due to commit 51e472ba.

 panel-plugin/xkb-config.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/xkb-config.c b/panel-plugin/xkb-config.c
index 6c751f3..22f771d 100644
--- a/panel-plugin/xkb-config.c
+++ b/panel-plugin/xkb-config.c
@@ -340,7 +340,7 @@ xkb_config_update_settings (t_xkb_settings *settings)
         if (settings->kbd_config->compose_key_position
                 && strlen (settings->kbd_config->compose_key_position) > 0)
         {
-            gchar *tmp = g_strdup (options);
+            gchar *tmp = options;
             options = g_strconcat (tmp, ",", settings->kbd_config->compose_key_position, NULL);
             g_free (tmp);
         }



More information about the Xfce4-commits mailing list