rendernodeparser: Only report a GError* if we have one

This commit is contained in:
Timm Bäder 2019-11-19 09:37:26 +01:00
parent 3d7817154c
commit ecc40cf115

View File

@ -126,11 +126,14 @@ parse_texture (GtkCssParser *parser,
if (texture == NULL)
{
gtk_css_parser_emit_error (parser,
&start_location,
gtk_css_parser_get_end_location (parser),
error);
g_clear_error (&error);
if (error)
{
gtk_css_parser_emit_error (parser,
&start_location,
gtk_css_parser_get_end_location (parser),
error);
g_clear_error (&error);
}
return FALSE;
}