diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2015-05-24 21:51:53 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-05-25 12:49:49 +0200 |
commit | be89fe55d849fb4fcdc34797797dff715d787496 (patch) | |
tree | e7e842ebb76b82fddbe4f3aa4c76e21b55595a7e | |
parent | b58ed0397a07277fd55527c2fff3490f6057c035 (diff) | |
download | mupdf-be89fe55d849fb4fcdc34797797dff715d787496.tar.xz |
Style context reference should be 1 after creation
-rw-r--r-- | source/fitz/context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/context.c b/source/fitz/context.c index f6edcee7..7bec4c13 100644 --- a/source/fitz/context.c +++ b/source/fitz/context.c @@ -42,6 +42,7 @@ static void fz_new_style_context(fz_context *ctx) if (ctx) { ctx->style = fz_malloc_struct(ctx, fz_style_context); + ctx->style->refs = 1; ctx->style->user_css = NULL; } } |