diff --git a/src/fcpat.c b/src/fcpat.c index 052874f..4179694 100644 --- a/src/fcpat.c +++ b/src/fcpat.c @@ -925,10 +925,14 @@ FcPatternDuplicate (const FcPattern *orig) for (i = 0; i < orig->num; i++) { for (l = FcPatternEltValues(e + i); l; l = FcValueListNext(l)) - if (!FcPatternObjectAdd (new, e[i].object, - FcValueCanonicalize(&l->value), - FcTrue)) + { + if (!FcPatternObjectAddWithBinding (new, e[i].object, + FcValueCanonicalize(&l->value), + l->binding, + FcTrue)) goto bail1; + + } } return new;