aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-08-19 23:48:18 +0200
committerThomas White <taw@bitwiz.org.uk>2013-08-19 23:48:18 +0200
commit24e4c90fa9de25bc5c6613b1217c20ab174b2516 (patch)
treec88d5cf77fe1de53f3341e548a7ef49393412829
parent7169dc8912ca4d00608c636d18ec4817dead96f2 (diff)
Don't free copies of fonts
-rw-r--r--src/wrap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wrap.c b/src/wrap.c
index ae64f43..9a8c58b 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -558,6 +558,9 @@ static void copy_top_font(struct sc_font_stack *stack)
stack->stack[stack->n_fonts] = stack->stack[stack->n_fonts-1];
}
+ /* This is a copy, so don't free it later */
+ stack->stack[stack->n_fonts].free_font_on_pop = 0;
+
stack->n_fonts++;
}