diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-09-16 14:18:09 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-09-16 17:26:28 +0100 |
commit | 117b8a8aa53ce1dcf813462b73c1d7d973494bc8 (patch) | |
tree | 45a9c979bc736f2f51641220a7796d6ad619b3f4 /source/pdf/pdf-xref.c | |
parent | 7b9eb0d5608c2a76ae7af2b58809e2efeef25afa (diff) | |
download | mupdf-117b8a8aa53ce1dcf813462b73c1d7d973494bc8.tar.xz |
Tweak store handling of PDF document destroy.
When we destroy a PDF document, currently we bin everything
from the store. Instead, drop just the objects that are
specifically tied to that document.
Any object tied to the document has a pdf_obj with the
required document pointer in it as the key.
Diffstat (limited to 'source/pdf/pdf-xref.c')
-rw-r--r-- | source/pdf/pdf-xref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index 30904d78..2d6bc1e0 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -1610,7 +1610,7 @@ pdf_drop_document_imp(fz_context *ctx, pdf_document *doc) pdf_drop_ocg(ctx, doc->ocg); - fz_empty_store(ctx); + pdf_empty_store(ctx, doc); pdf_lexbuf_fin(ctx, &doc->lexbuf.base); |