mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
Plug a memory leak in the css parser
color_value_parse was leaking a GtkCssSymbolicValue. Reported in https://bugzilla.gnome.org/show_bug.cgi?id=702034
This commit is contained in:
parent
0da33f11c2
commit
dbbb9c8f8f
@ -256,7 +256,7 @@ rgba_value_compute (GtkStyleProviderPrivate *provider,
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
static gboolean
|
||||
color_value_parse (GtkCssParser *parser,
|
||||
GValue *value)
|
||||
{
|
||||
@ -278,6 +278,7 @@ color_value_parse (GtkCssParser *parser,
|
||||
color.blue = rgba.blue * 65535. + 0.5;
|
||||
|
||||
g_value_set_boxed (value, &color);
|
||||
gtk_symbolic_color_unref (symbolic);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user