From 1cf0125f2dc49363f6fd94e8462bbdcbbd5e8669 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 25 Oct 2013 13:05:38 +0100 Subject: Fix leaks of colour attribute values. (Such as LINK, VLINK, TEXT, and COLOR attribute values.) --- css/select.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3