summaryrefslogtreecommitdiffstats
path: root/libass/ass_shaper.c
diff options
context:
space:
mode:
Diffstat (limited to 'libass/ass_shaper.c')
-rw-r--r--libass/ass_shaper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c
index 95222ae..2707b23 100644
--- a/libass/ass_shaper.c
+++ b/libass/ass_shaper.c
@@ -565,6 +565,7 @@ shape_harfbuzz_process_run(GlyphInfo *glyphs, hb_buffer_t *buf, int offset)
info->next = malloc(sizeof(GlyphInfo));
if (info->next) {
memcpy(info->next, info, sizeof(GlyphInfo));
+ ass_cache_inc_ref(info->font);
info = info->next;
info->next = NULL;
}