summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-02-07 12:32:53 +0000
committerRobin Watts <robin.watts@artifex.com>2012-02-07 12:34:08 +0000
commitdbc1902a656104c3a76b5a1ff7b064a999e04af1 (patch)
treee8d3db160d038b612022f07cf99fa9d05611ecb1
parentf9f7221b937ac1f38d0a0a52f553001a2d9efc48 (diff)
downloadmupdf-dbc1902a656104c3a76b5a1ff7b064a999e04af1.tar.xz
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.
-rw-r--r--fitz/base_context.c2
1 files changed, 1 insertions, 1 deletions
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;
}