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 /include | |
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 'include')
-rw-r--r-- | include/mupdf/pdf/resource.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mupdf/pdf/resource.h b/include/mupdf/pdf/resource.h index f9f99da6..5c19f35a 100644 --- a/include/mupdf/pdf/resource.h +++ b/include/mupdf/pdf/resource.h @@ -7,6 +7,7 @@ void pdf_store_item(fz_context *ctx, pdf_obj *key, void *val, size_t itemsize); void *pdf_find_item(fz_context *ctx, fz_store_drop_fn *drop, pdf_obj *key); void pdf_remove_item(fz_context *ctx, fz_store_drop_fn *drop, pdf_obj *key); +void pdf_empty_store(fz_context *ctx, pdf_document *doc); /* * Structures used for managing resource locations and avoiding multiple |