]> Dogcows Code - chaz/openbox/commitdiff
strdup the database string, dont return it directly
authorDana Jansens <danakj@orodu.net>
Wed, 19 Mar 2003 07:20:29 +0000 (07:20 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 19 Mar 2003 07:20:29 +0000 (07:20 +0000)
engines/openbox/theme.c

index 50e548442eaa4a9afd7742ea35ebd7ce4afcb862..4fc859dacbc109412e6b97502f04103479301c2a 100644 (file)
@@ -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;
     }
 
This page took 0.024422 seconds and 4 git commands to generate.