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:
Matthias Clasen 2013-09-16 23:30:57 -04:00
parent 0da33f11c2
commit dbbb9c8f8f

View File

@ -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
{