summaryrefslogtreecommitdiff
path: root/source/html/epub-doc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/html/epub-doc.c')
-rw-r--r--source/html/epub-doc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c
index efa43075..d9b0a0c9 100644
--- a/source/html/epub-doc.c
+++ b/source/html/epub-doc.c
@@ -463,7 +463,7 @@ epub_init(fz_context *ctx, fz_archive *zip)
}
fz_catch(ctx)
{
- epub_drop_document(ctx, (fz_document*)doc);
+ fz_drop_document(ctx, &doc->super);
fz_rethrow(ctx);
}