From 89b0b8215c86e15205b79a508fb8779efaac3664 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 26 Oct 2007 02:09:51 +0000 Subject: Call FcFontSetDestroy() instead of FcFontSetSortDestroy(). These days they 2007-10-25 Behdad Esfahbod * pango/pangofc-fontmap.c (pango_fc_font_map_get_patterns): Call FcFontSetDestroy() instead of FcFontSetSortDestroy(). These days they are the same, but previously the latter was not freeing the actual patterns. But we don't need the sort patterns, so this retroactively fixes a leak in older versions! svn path=/trunk/; revision=2479 --- ChangeLog | 9 +++++++++ pango/pangofc-fontmap.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 93a8bbbc..f95f6b44 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2007-10-25 Behdad Esfahbod + + * pango/pangofc-fontmap.c (pango_fc_font_map_get_patterns): + Call FcFontSetDestroy() instead of FcFontSetSortDestroy(). + These days they are the same, but previously the latter was + not freeing the actual patterns. But we don't need the + sort patterns, so this retroactively fixes a leak in older + versions! + 2007-10-25 Behdad Esfahbod * pango/opentype/*: Even more cleanup and more type renames. diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index e8471ec1..ea23056c 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -1112,7 +1112,7 @@ pango_fc_font_map_get_patterns (PangoFontMap *fontmap, FcPatternDestroy (pattern); - FcFontSetSortDestroy (font_patterns); + FcFontSetDestroy (font_patterns); patterns->key = fontset_hash_key_copy (&key); g_hash_table_insert (priv->fontset_hash, -- cgit v1.2.1