summaryrefslogtreecommitdiff
path: root/source/html/css-parse.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-11-26 17:26:51 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-12-03 12:25:52 +0100
commitf1bfe4b861621ad7554670acf91cb029e4482569 (patch)
tree35fc70c4643a8ad04e1910d271b5f65916429aec /source/html/css-parse.c
parentc4a45e25b92269e9e44594fd410b272718d939bc (diff)
downloadmupdf-f1bfe4b861621ad7554670acf91cb029e4482569.tar.xz
html: Free inline style properties at the end.
Diffstat (limited to 'source/html/css-parse.c')
-rw-r--r--source/html/css-parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/html/css-parse.c b/source/html/css-parse.c
index 0b12319f..a751903d 100644
--- a/source/html/css-parse.c
+++ b/source/html/css-parse.c
@@ -16,6 +16,7 @@ static fz_css_rule *fz_new_css_rule(fz_context *ctx, fz_css_selector *selector,
fz_css_rule *rule = fz_malloc_struct(ctx, fz_css_rule);
rule->selector = selector;
rule->declaration = declaration;
+ rule->garbage = NULL;
rule->next = NULL;
return rule;
}
@@ -119,6 +120,7 @@ void fz_free_css(fz_context *ctx, fz_css_rule *rule)
fz_css_rule *next = rule->next;
fz_free_css_selector(ctx, rule->selector);
fz_free_css_property(ctx, rule->declaration);
+ fz_free_css_property(ctx, rule->garbage);
fz_free(ctx, rule);
rule = next;
}