summaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-04-22 19:27:01 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-04-22 19:27:01 +0200
commitf72f49a69411bfa13520f0add565eed1a3746c09 (patch)
treeae338d475c683d0d141c6c26161d9f404c13bf6d
parent853105b9d2cc813cab4c9f698960224394ec7899 (diff)
dash reset debug
-rw-r--r--src/vkvg_context.c4
1 files changed, 3 insertions, 1 deletions
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)