]> granicus.if.org Git - libass/commitdiff
Fix TextInfo reallocation
authorGrigori Goronzy <greg@blackbox>
Sun, 1 Aug 2010 05:22:18 +0000 (07:22 +0200)
committerGrigori Goronzy <greg@blackbox>
Sun, 1 Aug 2010 05:22:18 +0000 (07:22 +0200)
libass/ass_render.c

index c9df30633236b45756037fb799c18de12a18b985..663afe17afbd6b529b7bba9814f9607956fac1ac 100644 (file)
@@ -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);
         }