summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-08 16:26:31 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-08 16:26:31 +0000
commite64a57b1e9c2ba6c6f54eff73c414be9e78dafbe (patch)
tree92111e795da1f8aa002285cda531a2346a9b588e /fitz
parent0e6931ad400fbf2780bd06530a3135653f8c9b4f (diff)
downloadmupdf-e64a57b1e9c2ba6c6f54eff73c414be9e78dafbe.tar.xz
Fix exception handling in pdfdraw to avoid leaks.
Remove use of 'die', in place of proper exception handling.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/base_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fitz/base_context.c b/fitz/base_context.c
index d828509e..0eacd6eb 100644
--- a/fitz/base_context.c
+++ b/fitz/base_context.c
@@ -22,6 +22,7 @@ fz_free_context(fz_context *ctx)
{
assert(ctx->error->top == -1);
fz_free(ctx, ctx->error);
+ fz_free(ctx, ctx->warn);
}
/* Free the context itself */