diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-16 19:13:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-16 19:13:55 +0400 |
commit | 6b283f1168295cf3b88fd29aa09f88feb10c1137 (patch) | |
tree | aad226ffce120ca521d06dc6e75cb3e383fb9e7f /source/blender/blenfont/intern | |
parent | 15ab4638cbc1765b51fd0ea6b4d13d6c35730223 (diff) |
Fix for BLF using realloc() on guarded-alloced memory
Diffstat (limited to 'source/blender/blenfont/intern')
-rw-r--r-- | source/blender/blenfont/intern/blf_glyph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index 2a8e91299b4..8a734f95db2 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -162,7 +162,7 @@ static void blf_glyph_cache_texture(FontBLF *font, GlyphCacheBLF *gc) if (gc->cur_tex >= gc->ntex) { gc->ntex *= 2; - gc->textures = (GLuint *)realloc((void *)gc->textures, sizeof(GLuint) * gc->ntex); + gc->textures = (GLuint *)MEM_reallocN((void *)gc->textures, sizeof(GLuint) * gc->ntex); } gc->p2_width = (int)blf_next_p2((unsigned int)((gc->rem_glyphs * gc->max_glyph_width) + (gc->pad * 2))); |