diff --git a/plugins/gconf.c b/plugins/gconf.c index cc7c978..fb54deb 100644 --- a/plugins/gconf.c +++ b/plugins/gconf.c @@ -330,7 +330,7 @@ gconfGetValue (CompDisplay *d, else if (type == CompOptionTypeString && gvalue->type == GCONF_VALUE_STRING) { - value->s = (char *) gconf_value_get_string (gvalue); + value->s = (char *) g_strdup (gconf_value_get_string (gvalue)); return TRUE; } else if (type == CompOptionTypeColor &&