From f72f49a69411bfa13520f0add565eed1a3746c09 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Fri, 22 Apr 2022 19:27:01 +0200 Subject: [PATCH] dash reset debug --- src/vkvg_context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vkvg_context.c b/src/vkvg_context.c index ec18ffc..3344658 100644 --- a/src/vkvg_context.c +++ b/src/vkvg_context.c @@ -247,8 +247,10 @@ void _clear_context (VkvgContext ctx) { ctx->pPrev->pNext = ctx->pNext; ctx->pNext->pPrev = ctx->pPrev; }*/ - if (ctx->dashCount > 0) + if (ctx->dashCount > 0) { free(ctx->dashes); + ctx->dashCount = 0; + } } void vkvg_destroy (VkvgContext ctx) -- 2.47.3