From 96107ef47246b9dcd38d803bd0e02b5b1dd29f7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Fri, 22 Apr 2022 19:59:38 +0200 Subject: [PATCH] free remaining saved context debug, set pSavedCtxs=NULL --- src/vkvg_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vkvg_context.c b/src/vkvg_context.c index 3344658..88249be 100644 --- a/src/vkvg_context.c +++ b/src/vkvg_context.c @@ -218,6 +218,7 @@ void vkvg_flush (VkvgContext ctx){ void _clear_context (VkvgContext ctx) { //free saved context stack elmt vkvg_context_save_t* next = ctx->pSavedCtxs; + ctx->pSavedCtxs = NULL; while (next != NULL) { vkvg_context_save_t* cur = next; next = cur->pNext; -- 2.47.3