summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
Diffstat (limited to 'css')
-rw-r--r--css/select.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/css/select.c b/css/select.c
index 23666e1ba..6c67c2e6c 100644
--- a/css/select.c
+++ b/css/select.c
@@ -2776,12 +2776,14 @@ node_presentational_hint_color(nscss_select_ctx *ctx,
if (!nscss_parse_colour((const char *)dom_string_data(color),
&hint->data.color)) {
+ dom_string_unref(color);
dom_string_unref(node_name);
return CSS_PROPERTY_NOT_SET;
}
hint->status = CSS_COLOR_COLOR;
+ dom_string_unref(color);
dom_string_unref(node_name);
return CSS_OK;