Updating branch refs/heads/xfce-4.8
         to 03ff865a0a917cea54a7af0ccde59fabd410c464 (commit)
       from f1893d3636960910eee4f61fd3cca3e944956d6f (commit)

commit 03ff865a0a917cea54a7af0ccde59fabd410c464
Author: Jérôme Guelfucci <[email protected]>
Date:   Thu Jan 27 21:48:57 2011 +0100

    Fix double free when setting workspace names (bug #7174).
    (cherry picked from commit 6c5b2bdd6fd5d733ba3deb968ea3d9193a1038f8)

 xfce4-settings-helper/workspaces.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/xfce4-settings-helper/workspaces.c 
b/xfce4-settings-helper/workspaces.c
index 1c66e81..42eb9ac 100644
--- a/xfce4-settings-helper/workspaces.c
+++ b/xfce4-settings-helper/workspaces.c
@@ -343,6 +343,10 @@ xfce_workspaces_helper_set_names (XfceWorkspacesHelper 
*helper)
                 if (name != NULL && *name != '\0')
                 {
                     /* use the existing name */
+                    val = g_new0 (GValue, 1);
+                    g_value_init (val, G_TYPE_STRING);
+                    new_name = g_strdup (name);
+                    g_value_take_string (val, new_name);
                     g_ptr_array_add (names, val);
                     continue;
                 }
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to