summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2010-08-01 07:22:18 +0200
committerGrigori Goronzy <greg@blackbox>2010-08-01 07:22:18 +0200
commite931738942822260d51f1d5fea9ee2db2c09dd8e (patch)
treebbc324994ed574fcba65aa312875426418d7c741
parent1c3673c4d4e22a25a09efdac1bebb947706d6ff1 (diff)
downloadlibass-e931738942822260d51f1d5fea9ee2db2c09dd8e.tar.bz2
libass-e931738942822260d51f1d5fea9ee2db2c09dd8e.tar.xz
Fix TextInfo reallocation
-rw-r--r--libass/ass_render.c2
1 files changed, 1 insertions, 1 deletions
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);
}