]> git.wh0rd.org - fontconfig.git/blobdiff - src/fclist.c
Copy the full pathname whenever duplicating an FcPattern; otherwise,
[fontconfig.git] / src / fclist.c
index fa567a0491338eec3a2ee039a7bcf5097bebed42..38c20e00db58f35cf9591f1c52d97b78f316e763 100644 (file)
@@ -424,11 +424,7 @@ FcListAppend (FcListHashTable      *table,
 
         /* Also, copy over the full path info. */
        if (!strcmp (os->objects[o], FC_FILE))
-       {
-           FcChar8 * s;
-           FcPatternGetString (font, FC_FILE, 0, &s);
-           FcPatternAddFullFname (bucket->pattern, FcPatternFindFullFname(font));
-       }
+           FcPatternTransferFullFname (bucket->pattern, font);
 
        e = FcPatternFindElt (font, os->objects[o]);
        if (e)