diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-10 16:49:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-10 16:49:46 +0300 |
commit | 1c3679a5b05db2b4a83f25ad6434106293b2726f (patch) | |
tree | c5cdac0e860abe6067a73ba256e6b515bb63fdb8 /source/blender/blenfont | |
parent | 188c4ae055393aa7495508d59c44870f072279d3 (diff) |
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]).
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r-- | source/blender/blenfont/intern/blf_glyph.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |