diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2009-05-10 17:20:41 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2009-05-10 17:20:41 +0200 |
commit | 768a7c54f4fcf80f8caeede72ae6e37b342a1fdd (patch) | |
tree | 42f270981d157e9bd9c0fd3c60a637fe1baed87f /apps | |
parent | aa646dd01c726c24d1a9c73cc556ffd03588021d (diff) | |
download | mupdf-768a7c54f4fcf80f8caeede72ae6e37b342a1fdd.tar.xz |
Properly drop xref when object has been shown.
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(); } |