From ba0afefc58ca583142463bd012bdd4b1b447582e Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 23 Aug 2013 20:05:02 +0100 Subject: Fix memory leak in new glyph cache code. Forgot to drop the font. --- source/fitz/draw-glyph.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source') diff --git a/source/fitz/draw-glyph.c b/source/fitz/draw-glyph.c index 340fcf8b..f38f9140 100644 --- a/source/fitz/draw-glyph.c +++ b/source/fitz/draw-glyph.c @@ -71,6 +71,7 @@ drop_glyph_cache_entry(fz_context *ctx, fz_glyph_cache_entry *entry) entry->bucket_prev->bucket_next = entry->bucket_next; else cache->entry[entry->hash] = entry->bucket_next; + fz_drop_font(ctx, entry->key.font); fz_drop_pixmap(ctx, entry->val); fz_free(ctx, entry); } -- cgit v1.2.3