From e64a57b1e9c2ba6c6f54eff73c414be9e78dafbe Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 8 Dec 2011 16:26:31 +0000 Subject: Fix exception handling in pdfdraw to avoid leaks. Remove use of 'die', in place of proper exception handling. --- fitz/base_context.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fitz') 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 */ -- cgit v1.2.3