From dbc1902a656104c3a76b5a1ff7b064a999e04af1 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 7 Feb 2012 12:32:53 +0000 Subject: Fix broken fz_clone_context; stupid typo. When cloning a context, it's generally best to return your new context, rather than the one you cloned from. --- fitz/base_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fitz/base_context.c b/fitz/base_context.c index 68dba187..b0ffe2a4 100644 --- a/fitz/base_context.c +++ b/fitz/base_context.c @@ -119,5 +119,5 @@ fz_clone_context(fz_context *ctx) new_ctx = new_context_phase1(ctx->alloc); new_ctx->store = fz_store_keep(ctx); - return ctx; + return new_ctx; } -- cgit v1.2.3