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) if (texture == NULL)
{ {
gtk_css_parser_emit_error (parser, if (error)
&start_location, {
gtk_css_parser_get_end_location (parser), gtk_css_parser_emit_error (parser,
error); &start_location,
g_clear_error (&error); gtk_css_parser_get_end_location (parser),
error);
g_clear_error (&error);
}
return FALSE; return FALSE;
} }