summaryrefslogtreecommitdiff
path: root/xps/xpszip.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-01 16:44:30 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-01 16:44:30 +0200
commita6de4b76903f590c776c112e02e2f2ce0a363010 (patch)
tree397c2c8c925331c93e83303267cced1d22aeeb81 /xps/xpszip.c
parentd2250034a7e629455b9bfbf735473ea39638a701 (diff)
downloadmupdf-a6de4b76903f590c776c112e02e2f2ce0a363010.tar.xz
apps: Add XPS support to mupdf viewer.
Diffstat (limited to 'xps/xpszip.c')
-rw-r--r--xps/xpszip.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xps/xpszip.c b/xps/xpszip.c
index 0646b89f..4905ea37 100644
--- a/xps/xpszip.c
+++ b/xps/xpszip.c
@@ -484,6 +484,14 @@ xps_load_page(xps_context *ctx, int number)
return nil;
}
+void
+xps_free_page(xps_context *ctx, xps_page *page)
+{
+ if (page->root)
+ xps_free_item(ctx, page->root);
+ page->root = NULL;
+}
+
xps_context *
xps_new_context(void)
{