diff options
-rw-r--r-- | apps/pdfapp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c index 846e6eb6..72f297ee 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -193,6 +193,10 @@ void pdfapp_close(pdfapp_t *app) fz_free_outline(app->ctx, app->outline); app->outline = NULL; + if (app->page) + fz_free_page(app->doc, app->page); + app->page = NULL; + if (app->doc) { fz_close_document(app->doc); |