]> O.S.I.I.S - jp/vkvg.git/commitdiff
dash reset debug
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Fri, 22 Apr 2022 17:27:01 +0000 (19:27 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Fri, 22 Apr 2022 17:27:01 +0000 (19:27 +0200)
src/vkvg_context.c

index ec18ffcdd00f065a3cf64ee3d9acf8234398e07a..33446585b10e7413a2328de4df4f250506801f8e 100644 (file)
@@ -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)