diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-03-28 08:38:39 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-03-28 08:38:39 +0000 |
commit | 796ab0878d70286fa52d4317d73a5d5688cef452 (patch) | |
tree | e6a6f07191ca1bcaa2e715dfc0f1981ad831dc5d /src/stylesheet.c | |
parent | 87d7c3d3dee8d22af977e346ba1c139131152077 (diff) | |
download | libcss-796ab0878d70286fa52d4317d73a5d5688cef452.tar.gz libcss-796ab0878d70286fa52d4317d73a5d5688cef452.tar.bz2 |
Do not unref strings referenced by bytecode we've just copied when appending to a rule's style.
svn path=/trunk/libcss/; revision=10174
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r-- | src/stylesheet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c index cc6621a..b10686f 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -1093,7 +1093,7 @@ css_error css_stylesheet_rule_append_style(css_stylesheet *sheet, cur->length); temp->length = cur->length; - css_stylesheet_style_destroy(sheet, cur, false); + css_stylesheet_style_destroy(sheet, cur, true); cur = temp; } @@ -1108,7 +1108,7 @@ css_error css_stylesheet_rule_append_style(css_stylesheet *sheet, sheet->size += style->length; /* Done with style */ - css_stylesheet_style_destroy(sheet, style, false); + css_stylesheet_style_destroy(sheet, style, true); } else { /* No current style, so use this one */ cur = style; |