From 767fe0ebc246704168244cd23848f987fd7fb88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Mon, 4 Jan 2010 13:48:27 -0500 Subject: [PATCH] [St] Don't leak the font family name A copy of the string is made by pango_font_description_set_family() and we don't need the string anymore, so we should free it https://bugzilla.gnome.org/show_bug.cgi?id=605035 --- src/st/st-theme-node.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c index 29acbd8e0..fb14c68f5 100644 --- a/src/st/st-theme-node.c +++ b/src/st/st-theme-node.c @@ -1953,7 +1953,10 @@ st_theme_node_get_font (StThemeNode *node) } if (family) - pango_font_description_set_family (node->font_desc, family); + { + pango_font_description_set_family (node->font_desc, family); + g_free (family); + } if (size_set) pango_font_description_set_absolute_size (node->font_desc, size);