From 768a7c54f4fcf80f8caeede72ae6e37b342a1fdd Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 10 May 2009 17:20:41 +0200 Subject: Properly drop xref when object has been shown. --- apps/pdfshow.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps') 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(); } -- cgit v1.2.3