diff options
| author | Jan Horak <jhorak@redhat.com> | 2018-10-16 08:50:27 +0000 |
|---|---|---|
| committer | Jan Horak <jhorak@redhat.com> | 2018-10-16 08:50:27 +0000 |
| commit | 80b401535eb43f68d6e23c5a874dceb3bc64d3f4 (patch) | |
| tree | 3b7a1cfc285fd551d2856130437e8da23e7f387c /src | |
| parent | Fix use after free in error reporting (diff) | |
| download | inkscape-80b401535eb43f68d6e23c5a874dceb3bc64d3f4.tar.gz inkscape-80b401535eb43f68d6e23c5a874dceb3bc64d3f4.zip | |
Nulling pointer after destroying its data.
Diffstat (limited to 'src')
| -rw-r--r-- | src/3rdparty/libcroco/cr-om-parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/3rdparty/libcroco/cr-om-parser.c b/src/3rdparty/libcroco/cr-om-parser.c index 596cd6e6b..7e1127e41 100644 --- a/src/3rdparty/libcroco/cr-om-parser.c +++ b/src/3rdparty/libcroco/cr-om-parser.c @@ -691,6 +691,7 @@ property (CRDocHandler * a_this, (ctxt->cur_stmt->kind.ruleset->decl_list, decl); if (!decl2) { cr_declaration_destroy (decl); + decl = NULL; cr_utils_trace_info ("Could not append decl to ruleset"); goto error; @@ -706,6 +707,7 @@ property (CRDocHandler * a_this, decl); if (!decl2) { cr_declaration_destroy (decl); + decl = NULL; cr_utils_trace_info ("Could not append decl to ruleset"); goto error; @@ -719,6 +721,7 @@ property (CRDocHandler * a_this, (ctxt->cur_stmt->kind.page_rule->decl_list, decl); if (!decl2) { cr_declaration_destroy (decl); + decl = NULL; cr_utils_trace_info ("Could not append decl to ruleset"); goto error; |
