summaryrefslogtreecommitdiff
path: root/source/tools/mudraw.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-07-04 10:38:43 +0100
committerRobin Watts <robin.watts@artifex.com>2017-07-04 10:39:17 +0100
commitc87bc4ed995b8dcf50277169fbd00cf6e0a640c8 (patch)
tree36d079d80e2538be289c637ba34f2fd37135b1c1 /source/tools/mudraw.c
parentfda8f51d6e58a46971f12be7649dce8c4e2a14a6 (diff)
downloadmupdf-c87bc4ed995b8dcf50277169fbd00cf6e0a640c8.tar.xz
Avoid losing dev if error thrown in mudraw. Solves leaks.
Diffstat (limited to 'source/tools/mudraw.c')
-rw-r--r--source/tools/mudraw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c
index 5de7e0a1..5ffada84 100644
--- a/source/tools/mudraw.c
+++ b/source/tools/mudraw.c
@@ -434,6 +434,8 @@ static void drawband(fz_context *ctx, fz_page *page, fz_display_list *list, cons
{
fz_device *dev = NULL;
+ fz_var(dev);
+
*bit = NULL;
fz_try(ctx)