diff options
Diffstat (limited to 'xps/xpszip.c')
-rw-r--r-- | xps/xpszip.c | 8 |
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) { |