diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pdfapp.c | 6 | ||||
-rw-r--r-- | apps/pdfclean.c | 2 | ||||
-rw-r--r-- | apps/pdfdraw.c | 4 | ||||
-rw-r--r-- | apps/pdfextract.c | 2 | ||||
-rw-r--r-- | apps/pdfshow.c | 2 | ||||
-rw-r--r-- | apps/win_main.c | 2 | ||||
-rw-r--r-- | apps/xpsdraw.c | 2 |
7 files changed, 8 insertions, 12 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c index 9893af39..c1e026fe 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -259,10 +259,6 @@ void pdfapp_close(pdfapp_t *app) if (app->xref) { - if (app->xref->store) - pdf_free_store(app->ctx, app->xref->store); - app->xref->store = NULL; - pdf_free_xref(app->xref); app->xref = NULL; } @@ -347,7 +343,7 @@ static void pdfapp_loadpage_pdf(pdfapp_t *app) pdf_free_page(app->ctx, page); - pdf_age_store(app->ctx, app->xref->store, 3); + fz_age_store(app->ctx, 3); } static void pdfapp_loadpage_xps(pdfapp_t *app) diff --git a/apps/pdfclean.c b/apps/pdfclean.c index e13ad0f6..e8c27359 100644 --- a/apps/pdfclean.c +++ b/apps/pdfclean.c @@ -767,7 +767,7 @@ int main(int argc, char **argv) if (argc - fz_optind > 0) subset = 1; - ctx = fz_new_context(&fz_alloc_default); + ctx = fz_new_context(&fz_alloc_default, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot initialise context\n"); diff --git a/apps/pdfdraw.c b/apps/pdfdraw.c index 861d2b3f..af1d5ad7 100644 --- a/apps/pdfdraw.c +++ b/apps/pdfdraw.c @@ -263,7 +263,7 @@ static void drawpage(pdf_xref *xref, int pagenum) if (showmd5 || showtime) printf("\n"); - pdf_age_store(ctx, xref->store, 3); + fz_age_store(ctx, 3); fz_flush_warnings(ctx); } @@ -362,7 +362,7 @@ int main(int argc, char **argv) if (accelerate) fz_accelerate(); - ctx = fz_new_context(&fz_alloc_default); + ctx = fz_new_context(&fz_alloc_default, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot initialise context\n"); diff --git a/apps/pdfextract.c b/apps/pdfextract.c index c32a25c5..590bf13f 100644 --- a/apps/pdfextract.c +++ b/apps/pdfextract.c @@ -178,7 +178,7 @@ int main(int argc, char **argv) infile = argv[fz_optind++]; - ctx = fz_new_context(&fz_alloc_default); + ctx = fz_new_context(&fz_alloc_default, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot initialise context\n"); diff --git a/apps/pdfshow.c b/apps/pdfshow.c index c437f262..0c3feaf2 100644 --- a/apps/pdfshow.c +++ b/apps/pdfshow.c @@ -189,7 +189,7 @@ int main(int argc, char **argv) filename = argv[fz_optind++]; - ctx = fz_new_context(&fz_alloc_default); + ctx = fz_new_context(&fz_alloc_default, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot initialise context\n"); diff --git a/apps/win_main.c b/apps/win_main.c index eb0e6085..0af83aec 100644 --- a/apps/win_main.c +++ b/apps/win_main.c @@ -831,7 +831,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShow fz_accelerate(); - ctx = fz_new_context(&fz_alloc_default); + ctx = fz_new_context(&fz_alloc_default, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot initialise context\n"); diff --git a/apps/xpsdraw.c b/apps/xpsdraw.c index a7223574..f583057e 100644 --- a/apps/xpsdraw.c +++ b/apps/xpsdraw.c @@ -314,7 +314,7 @@ int main(int argc, char **argv) if (accelerate) fz_accelerate(); - ctx = fz_new_context(&fz_alloc_default); + ctx = fz_new_context(&fz_alloc_default, FZ_STORE_UNLIMITED); if (!ctx) { fprintf(stderr, "cannot initialise context\n"); |