summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2015-05-24 21:51:53 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-05-25 12:49:49 +0200
commitbe89fe55d849fb4fcdc34797797dff715d787496 (patch)
treee7e842ebb76b82fddbe4f3aa4c76e21b55595a7e
parentb58ed0397a07277fd55527c2fff3490f6057c035 (diff)
downloadmupdf-be89fe55d849fb4fcdc34797797dff715d787496.tar.xz
Style context reference should be 1 after creation
-rw-r--r--source/fitz/context.c1
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;
}
}