diff options
author | Benjamin Otte <otte@redhat.com> | 2012-04-03 09:49:37 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-17 08:59:17 +0200 |
commit | b9ebe8c2269d2040d50448fb72f72c344d459625 (patch) | |
tree | 9d883097e33e3927703d73067235b6afc68ea49b /gtk/gtkcssshorthandproperty.c | |
parent | 580b5e4a83c2adf2714c6e7f73fa864e92215188 (diff) | |
download | gtk+-b9ebe8c2269d2040d50448fb72f72c344d459625.tar.gz |
cssarrayvalue: Redo parsing arrays
Does 3 things:
1) Introduce a "none" array signleton
2) Get rid of memleaks in error paths
3) Reduce code in parse funcs
Diffstat (limited to 'gtk/gtkcssshorthandproperty.c')
-rw-r--r-- | gtk/gtkcssshorthandproperty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssshorthandproperty.c b/gtk/gtkcssshorthandproperty.c index f10201d31c..f63d3a51de 100644 --- a/gtk/gtkcssshorthandproperty.c +++ b/gtk/gtkcssshorthandproperty.c @@ -139,7 +139,7 @@ gtk_css_shorthand_property_parse_value (GtkStyleProperty *property, data[i] = _gtk_css_initial_value_new (); } - result = _gtk_css_array_value_new (data, shorthand->subproperties->len); + result = _gtk_css_array_value_new_from_array (data, shorthand->subproperties->len); g_free (data); return result; |