From ff39eb9ba28360086bec0b2bd097906ebd407741 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 19 Mar 2003 07:20:29 +0000 Subject: [PATCH] strdup the database string, dont return it directly --- engines/openbox/theme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2