]> O.S.I.I.S - jp/vkvg.git/commitdiff
free remaining saved context debug, set pSavedCtxs=NULL
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Fri, 22 Apr 2022 17:59:38 +0000 (19:59 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Fri, 22 Apr 2022 17:59:38 +0000 (19:59 +0200)
src/vkvg_context.c

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