diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-17 01:10:23 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-17 01:10:23 +0000 |
commit | b20c8c628feab388f5d9b738326b8fbc35d8a742 (patch) | |
tree | 0b3581b1eb6b57831296d88e10a1ba457be0f2d8 | |
parent | 3eae1449777c4ecccc73a156c7dfff42f927ccc4 (diff) | |
download | mupdf-b20c8c628feab388f5d9b738326b8fbc35d8a742.tar.xz |
Memory squeezing fix
-rw-r--r-- | apps/pdfdraw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/pdfdraw.c b/apps/pdfdraw.c index 0965e9d5..3d11729e 100644 --- a/apps/pdfdraw.c +++ b/apps/pdfdraw.c @@ -127,6 +127,7 @@ static void drawpage(pdf_xref *xref, int pagenum) fz_throw(ctx, "cannot draw page %d in file '%s'", pagenum, filename); } fz_free_device(dev); + dev = NULL; } if (showxml) @@ -149,6 +150,7 @@ static void drawpage(pdf_xref *xref, int pagenum) fz_rethrow(ctx); } fz_free_device(dev); + dev = NULL; } if (showtext) |