summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
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)