summaryrefslogtreecommitdiff
path: root/gtk/gtkcssshorthandpropertyimpl.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-04-03 09:49:37 +0200
committerBenjamin Otte <otte@redhat.com>2012-04-17 08:59:17 +0200
commitb9ebe8c2269d2040d50448fb72f72c344d459625 (patch)
tree9d883097e33e3927703d73067235b6afc68ea49b /gtk/gtkcssshorthandpropertyimpl.c
parent580b5e4a83c2adf2714c6e7f73fa864e92215188 (diff)
downloadgtk+-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/gtkcssshorthandpropertyimpl.c')
-rw-r--r--gtk/gtkcssshorthandpropertyimpl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkcssshorthandpropertyimpl.c b/gtk/gtkcssshorthandpropertyimpl.c
index 7bba8786c7..3b467f7b5c 100644
--- a/gtk/gtkcssshorthandpropertyimpl.c
+++ b/gtk/gtkcssshorthandpropertyimpl.c
@@ -434,8 +434,7 @@ parse_font (GtkCssShorthandProperty *shorthand,
if (mask & PANGO_FONT_MASK_FAMILY)
{
- GtkCssValue *value = _gtk_css_string_value_new (pango_font_description_get_family (desc));
- values[0] = _gtk_css_array_value_new (&value, 1);
+ values[0] = _gtk_css_array_value_new (_gtk_css_string_value_new (pango_font_description_get_family (desc)));
}
if (mask & PANGO_FONT_MASK_STYLE)
{