diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-02-07 12:32:53 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-02-07 12:34:08 +0000 |
commit | dbc1902a656104c3a76b5a1ff7b064a999e04af1 (patch) | |
tree | e8d3db160d038b612022f07cf99fa9d05611ecb1 | |
parent | f9f7221b937ac1f38d0a0a52f553001a2d9efc48 (diff) | |
download | mupdf-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.c | 2 |
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; } |