summaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-04-22 19:59:38 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-04-22 19:59:38 +0200
commit96107ef47246b9dcd38d803bd0e02b5b1dd29f7e (patch)
tree0056cb5622de7fbec67942b5f93de6d7599d638d
parentf72f49a69411bfa13520f0add565eed1a3746c09 (diff)
free remaining saved context debug, set pSavedCtxs=NULL
-rw-r--r--src/vkvg_context.c1
1 files changed, 1 insertions, 0 deletions
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;