summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-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;
}
}