css: Fix memleak in shadow parsing

This commit is contained in:
Benjamin Otte 2012-01-16 22:14:10 +01:00
parent 345d865ac6
commit 9770184643

View File

@ -898,11 +898,11 @@ shadow_value_parse (GtkCssParser *parser,
GtkShadow *shadow;
guint i;
shadow = _gtk_shadow_new ();
if (_gtk_css_parser_try (parser, "none", TRUE))
return TRUE;
shadow = _gtk_shadow_new ();
do
{
have_inset = have_lengths = have_color = FALSE;