From: Jean-Philippe Bruyère Date: Fri, 22 Apr 2022 17:27:01 +0000 (+0200) Subject: dash reset debug X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=f72f49a69411bfa13520f0add565eed1a3746c09;p=jp%2Fvkvg.git dash reset debug --- 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)