[Xfce4-commits] <xfce4-settings:xfce-4.8> Fix double free when setting workspace names (bug #7174). (cherry picked from commit 6c5b2bdd6fd5d733ba3deb968ea3d9193a1038f8)
Nick Schermer
noreply at xfce.org
Sun Jan 30 17:36:03 CET 2011
Updating branch refs/heads/xfce-4.8
to 03ff865a0a917cea54a7af0ccde59fabd410c464 (commit)
from f1893d3636960910eee4f61fd3cca3e944956d6f (commit)
commit 03ff865a0a917cea54a7af0ccde59fabd410c464
Author: Jérôme Guelfucci <jeromeg at xfce.org>
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;
}
More information about the Xfce4-commits
mailing list