summaryrefslogtreecommitdiff
path: root/source/fitz/draw-glyph.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-08-23 20:05:02 +0100
committerRobin Watts <robin.watts@artifex.com>2013-08-26 14:59:34 +0100
commitba0afefc58ca583142463bd012bdd4b1b447582e (patch)
tree782d302ce4973461f1e32ddc98fa1ddeb5e35bcb /source/fitz/draw-glyph.c
parent0bfe9501ebc2e2a2329a5435100ef189b6166219 (diff)
downloadmupdf-ba0afefc58ca583142463bd012bdd4b1b447582e.tar.xz
Fix memory leak in new glyph cache code.
Forgot to drop the font.
Diffstat (limited to 'source/fitz/draw-glyph.c')
-rw-r--r--source/fitz/draw-glyph.c1
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);
}