cssvalue: Handle named colors not resolving

If a named color references a nonexistant named color, we didn't catch
that error and ended up crashing on a NULL-dereference.
This crashed Boxes, because its CSS referenced values from the theme
that didn't exist in any theme.
This commit is contained in:
Benjamin Otte
2013-03-28 22:52:30 +01:00
parent dded6a0673
commit c25d8e3aea

View File

@ -166,6 +166,8 @@ _gtk_css_color_value_resolve (GtkCssValue *color,
return NULL;
value = _gtk_css_color_value_resolve (named, provider, current, current_deps, dependencies);
if (value == NULL)
return NULL;
}
break;