mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-29 01:33:16 +03:00
Fix leaks of colour attribute values. (Such as LINK, VLINK, TEXT, and COLOR attribute values.)
This commit is contained in:
parent
88bd4e2ee2
commit
1cf0125f2d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user