mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user