All pastes #91041 Raw Edit

Unnamed

public text v1 · immutable
#91041 ·published 2006-07-18 07:06 UTC
rendered paste body
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 &&