diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-01-20 15:27:34 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-02-17 16:31:34 +0100 |
commit | b9d11456411907e9add8d91b02d67842990c2952 (patch) | |
tree | ca29439a35e83948645481cf0d0dfca445bf8b03 /source/xps/xps-tile.c | |
parent | 4fe9caafead64704a16c7093b72115893be3087f (diff) | |
download | mupdf-b9d11456411907e9add8d91b02d67842990c2952.tar.xz |
Reference count fz_path and fz_text.
Disallow modification of shared fz_path and fz_text objects.
They should follow a create once, consume often pattern, and as such should
be immutable once created.
Diffstat (limited to 'source/xps/xps-tile.c')
-rw-r--r-- | source/xps/xps-tile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/xps/xps-tile.c b/source/xps/xps-tile.c index b65981a2..5f966619 100644 --- a/source/xps/xps-tile.c +++ b/source/xps/xps-tile.c @@ -28,7 +28,7 @@ xps_paint_tiling_brush_clipped(xps_document *doc, const fz_matrix *ctm, const fz fz_lineto(doc->ctx, path, viewbox->x1, viewbox->y0); fz_closepath(doc->ctx, path); fz_clip_path(doc->dev, path, NULL, 0, ctm); - fz_free_path(doc->ctx, path); + fz_drop_path(doc->ctx, path); c->func(doc, ctm, viewbox, c->base_uri, c->dict, c->root, c->user); fz_pop_clip(doc->dev); } |