strdup the database string, dont return it directly
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
engines/openbox/theme.c
→
engines/openbox/theme.c
@@ -95,7 +95,7 @@ XrmValue retvalue;
if (XrmGetResource(db, rname, rclass, &rettype, &retvalue) && retvalue.addr != NULL) { - *value = retvalue.addr; + *value = g_strdup(retvalue.addr); ret = TRUE; }