From: Grigori Goronzy Date: Sun, 1 Aug 2010 05:22:18 +0000 (+0200) Subject: Fix TextInfo reallocation X-Git-Tag: 0.9.10~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e931738942822260d51f1d5fea9ee2db2c09dd8e;p=libass Fix TextInfo reallocation --- diff --git a/libass/ass_render.c b/libass/ass_render.c index c9df306..663afe1 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1793,7 +1793,7 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event, if (text_info->length >= text_info->max_glyphs) { // Raise maximum number of glyphs text_info->max_glyphs *= 2; - text_info->glyphs = + text_info->glyphs = glyphs = realloc(text_info->glyphs, sizeof(GlyphInfo) * text_info->max_glyphs); }