diff options
Diffstat (limited to 'apps/common/pdfapp.c')
-rw-r--r-- | apps/common/pdfapp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/common/pdfapp.c b/apps/common/pdfapp.c index 935f79f4..96eeae00 100644 --- a/apps/common/pdfapp.c +++ b/apps/common/pdfapp.c @@ -77,10 +77,7 @@ void pdfapp_open(pdfapp_t *app, char *filename) app->filename = filename; - error = pdf_newxref(&app->xref); - if (error) - pdfapp_error(app, error); - + app->xref = pdf_newxref(); error = pdf_loadxref(app->xref, filename); if (error) { |