cssparser: Don't use a free'd string in error messages
This commit is contained in:
@ -669,15 +669,16 @@ _gtk_css_number_value_parse (GtkCssParser *parser,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free (unit_name);
|
|
||||||
|
|
||||||
if (i >= G_N_ELEMENTS (units))
|
if (i >= G_N_ELEMENTS (units))
|
||||||
{
|
{
|
||||||
_gtk_css_parser_error (parser, "`%s' is not a valid unit.", unit_name);
|
_gtk_css_parser_error (parser, "`%s' is not a valid unit.", unit_name);
|
||||||
|
g_free (unit_name);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
unit = units[i].unit;
|
unit = units[i].unit;
|
||||||
|
|
||||||
|
g_free (unit_name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user