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