Commit b50504f5 authored by Kenichi Handa's avatar Kenichi Handa

(ftfont_pattern_entity): Return a newly allocated

entity even if the cache hits.
parent 873f4645
2009-04-17 Kenichi Handa <handa@m17n.org>
* ftfont.c (ftfont_pattern_entity): Return a newly allocated
entity even if the cache hits.
2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
* search.c (boyer_moore): Use zero as marker value for a possible
......
......@@ -208,7 +208,14 @@ ftfont_pattern_entity (p, extra)
cache = ftfont_lookup_cache (key, FTFONT_CACHE_FOR_ENTITY);
entity = XCAR (cache);
if (! NILP (entity))
return entity;
{
Lisp_Object val = font_make_entity ();
int i;
for (i = 0; i < FONT_OBJLIST_INDEX; i++)
ASET (val, i, AREF (entity, i));
return val;
}
entity = font_make_entity ();
XSETCAR (cache, entity);
......
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