From 9de055eb5d881efa3e8a3dbd6ce7372bb6cc6744 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 20 May 2012 00:50:04 +0200 Subject: [PATCH] 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. --- rendertext.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rendertext.lua b/rendertext.lua index 2c331208a..228b19bbc 100644 --- a/rendertext.lua +++ b/rendertext.lua @@ -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;