summaryrefslogtreecommitdiff
path: root/source/xps/xps-zip.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/xps/xps-zip.c')
-rw-r--r--source/xps/xps-zip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/xps/xps-zip.c b/source/xps/xps-zip.c
index 1d8f5bc8..6874a3b4 100644
--- a/source/xps/xps-zip.c
+++ b/source/xps/xps-zip.c
@@ -134,7 +134,7 @@ xps_open_document_with_directory(fz_context *ctx, const char *directory)
}
fz_catch(ctx)
{
- xps_drop_document(ctx, doc);
+ fz_drop_document(ctx, &doc->super);
fz_rethrow(ctx);
}
@@ -156,7 +156,7 @@ xps_open_document_with_stream(fz_context *ctx, fz_stream *file)
}
fz_catch(ctx)
{
- xps_drop_document(ctx, doc);
+ fz_drop_document(ctx, &doc->super);
fz_rethrow(ctx);
}