diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-08-23 20:05:02 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-08-26 14:59:34 +0100 |
commit | ba0afefc58ca583142463bd012bdd4b1b447582e (patch) | |
tree | 782d302ce4973461f1e32ddc98fa1ddeb5e35bcb | |
parent | 0bfe9501ebc2e2a2329a5435100ef189b6166219 (diff) | |
download | mupdf-ba0afefc58ca583142463bd012bdd4b1b447582e.tar.xz |
Fix memory leak in new glyph cache code.
Forgot to drop the font.
-rw-r--r-- | source/fitz/draw-glyph.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |