diff --git a/engines/openbox/theme.c b/engines/openbox/theme.c index 50e54844..4fc859da 100644 --- a/engines/openbox/theme.c +++ b/engines/openbox/theme.c @@ -95,7 +95,7 @@ gboolean read_string(XrmDatabase db, char *rname, char **value) if (XrmGetResource(db, rname, rclass, &rettype, &retvalue) && retvalue.addr != NULL) { - *value = retvalue.addr; + *value = g_strdup(retvalue.addr); ret = TRUE; }