mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-09 04:00:08 +00:00
csstokenizer: Plug a leak
This commit is contained in:
parent
ecc40cf115
commit
581f5bd749
@ -862,7 +862,7 @@ gtk_css_tokenizer_read_name (GtkCssTokenizer *tokenizer)
|
|||||||
g_string_append_unichar (string, 0xFFFD);
|
g_string_append_unichar (string, 0xFFFD);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_css_tokenizer_consume_char (tokenizer, string);
|
gtk_css_tokenizer_consume_char (tokenizer, string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -994,10 +994,11 @@ gtk_css_tokenizer_read_ident_like (GtkCssTokenizer *tokenizer,
|
|||||||
|
|
||||||
if (*data != '"' && *data != '\'')
|
if (*data != '"' && *data != '\'')
|
||||||
{
|
{
|
||||||
|
g_free (name);
|
||||||
return gtk_css_tokenizer_read_url (tokenizer, token, error);
|
return gtk_css_tokenizer_read_url (tokenizer, token, error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_css_token_init (token, GTK_CSS_TOKEN_FUNCTION, name);
|
gtk_css_token_init (token, GTK_CSS_TOKEN_FUNCTION, name);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user