diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pdfshow.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/pdfshow.c b/apps/pdfshow.c index 44cac546..055b0e0a 100644 --- a/apps/pdfshow.c +++ b/apps/pdfshow.c @@ -60,6 +60,12 @@ void openxref(char *filename, char *password) } } +void closexref() +{ + pdf_closexref(xref); + xref = nil; +} + int showbinary = 0; int showdecode = 0; int showcolumn; @@ -348,5 +354,7 @@ int main(int argc, char **argv) showobject(atoi(argv[optind]), 0); optind++; } + + closexref(); } |