mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix glymp caching name
With recent changes in font selector, we where hitting glyphcache_max_memsize so glyphcache[k].glyph.bb:free() got invoked and crashed reader.
This commit is contained in:
@@ -30,12 +30,12 @@ function getGlyph(face, charcode)
|
||||
glyphcache[hash] = {
|
||||
age = glyphcache_max_age,
|
||||
size = size,
|
||||
g = glyph
|
||||
glyph = glyph
|
||||
}
|
||||
else
|
||||
glyphcache[hash].age = glyphcache_max_age
|
||||
end
|
||||
return glyphcache[hash].g
|
||||
return glyphcache[hash].glyph
|
||||
end
|
||||
function glyphCacheHash(face, charcode)
|
||||
return face..'_'..charcode;
|
||||
|
||||
Reference in New Issue
Block a user