summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-17 01:10:23 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-17 01:10:23 +0000
commitb20c8c628feab388f5d9b738326b8fbc35d8a742 (patch)
tree0b3581b1eb6b57831296d88e10a1ba457be0f2d8 /apps
parent3eae1449777c4ecccc73a156c7dfff42f927ccc4 (diff)
downloadmupdf-b20c8c628feab388f5d9b738326b8fbc35d8a742.tar.xz
Memory squeezing fix
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfdraw.c2
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)