mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-08 11:40:16 +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);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
gtk_css_tokenizer_consume_char (tokenizer, string);
|
||||
}
|
||||
}
|
||||
@ -994,10 +994,11 @@ gtk_css_tokenizer_read_ident_like (GtkCssTokenizer *tokenizer,
|
||||
|
||||
if (*data != '"' && *data != '\'')
|
||||
{
|
||||
g_free (name);
|
||||
return gtk_css_tokenizer_read_url (tokenizer, token, error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
gtk_css_token_init (token, GTK_CSS_TOKEN_FUNCTION, name);
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user