From e8486fdf710ce49da0c0a70ff9bbe6645bd5e3ae Mon Sep 17 00:00:00 2001 From: Felix Riemann Date: Sat, 23 Jul 2011 15:50:05 +0200 Subject: [PATCH] gtkstyleproperty: fix small memory leak The released value is a string array and thus g_free is not sufficient. https://bugzilla.gnome.org/show_bug.cgi?id=655173 --- gtk/gtkstyleproperty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c index c44d0e7280..6ffb46c446 100644 --- a/gtk/gtkstyleproperty.c +++ b/gtk/gtkstyleproperty.c @@ -2008,7 +2008,7 @@ pack_font_description (GValue *value, pango_font_description_set_variant (description, variant); pango_font_description_set_weight (description, weight); - g_free (families); + g_strfreev (families); g_value_take_boxed (value, description); }