forked from AuroraMiddleware/gtk
rendernodeparser: Only report a GError* if we have one
This commit is contained in:
parent
3d7817154c
commit
ecc40cf115
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user