Skip to content

Commit

Permalink
debug when context destroyed with remaining saved ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbruyere committed Oct 14, 2022
1 parent f2e52c2 commit 6c329ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/vkvg_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ void _clear_context (VkvgContext ctx) {
vkvg_context_save_t* cur = next;
next = cur->pNext;
_free_ctx_save (cur);
if (cur->pattern)
vkvg_pattern_destroy (cur->pattern);
}
//free additional stencil use in save/restore process
if (ctx->savedStencils) {
Expand Down
2 changes: 2 additions & 0 deletions src/vkvg_context_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,8 @@ bool ptInTriangle(vec2 p, vec2 p0, vec2 p1, vec2 p2) {
void _free_ctx_save (vkvg_context_save_t* sav){
if (sav->dashCount > 0)
free (sav->dashes);
if (sav->pattern)
vkvg_pattern_destroy(sav->pattern);
free (sav);
}

Expand Down

0 comments on commit 6c329ac

Please sign in to comment.