From 1c3679a5b05db2b4a83f25ad6434106293b2726f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 10 Mar 2011 13:49:46 +0000 Subject: fix [#26442] blender crash when turning off antialiasing fonts ASCII lookup table wasn't being freed when when the rest of the glyphs were. Also found own bug where mesh stat text was using wrong sized array (char[3] as char[4]). --- source/blender/blenfont/intern/blf_glyph.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenfont') diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index b9154951fb1..e165012f43e 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -135,6 +135,8 @@ void blf_glyph_cache_clear(FontBLF *font) } } } + + memset(font->glyph_ascii_table, 0, sizeof(font->glyph_ascii_table)); } void blf_glyph_cache_free(GlyphCacheBLF *gc) -- cgit v1.2.3