Commit 52ac91f7 authored by Patrick Lam's avatar Patrick Lam
Browse files

Fix double-free which occurs because FcValueCanonicalize doesn't create an

    extra copy of the returned value, it only canonicalizes it.
reviewed by: plam
parent cea78a87
2005-01-02 Patrick Lam <plam@mit.edu>
2006-01-02 Lubos Lunak <l.lunak@suse.cz>
reviewed by: plam
* src/fccfg.c (FcConfigEvaluate):
Fix double-free which occurs because FcValueCanonicalize doesn't
create an extra copy of the returned value, it only canonicalizes
it.
2006-01-02 Patrick Lam <plam@mit.edu>
* doc/fontconfig-user.sgml:
Fix version of .cache file (currently 1 -> currently 2). Reported
......
......@@ -823,6 +823,7 @@ FcConfigEvaluate (FcPattern *p, FcExpr *e)
r = FcPatternGet (p, e->u.field, 0, &v);
if (r != FcResultMatch)
v.type = FcTypeVoid;
v = FcValueSave (v);
break;
case FcOpConst:
if (FcNameConstant (e->u.constant, &v.u.i))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment