summaryrefslogtreecommitdiff
path: root/platform/ios/Classes/MuPageViewReflow.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/Classes/MuPageViewReflow.m')
-rw-r--r--platform/ios/Classes/MuPageViewReflow.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/ios/Classes/MuPageViewReflow.m b/platform/ios/Classes/MuPageViewReflow.m
index 86905b03..2b1cdebf 100644
--- a/platform/ios/Classes/MuPageViewReflow.m
+++ b/platform/ios/Classes/MuPageViewReflow.m
@@ -28,6 +28,7 @@ NSString *textAsHtml(fz_document *doc, int pageNum)
dev = fz_new_stext_device(ctx, sheet, text);
page = fz_load_page(ctx, doc, pageNum);
fz_run_page(ctx, page, dev, &ctm, NULL);
+ fz_close_device(ctx, dev);
fz_drop_device(ctx, dev);
dev = NULL;