summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-07-21 23:36:57 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-07-21 23:36:57 +0000
commit7a9b8fb2374b6459a52f10e1a1ef732b8cff1c27 (patch)
treee579b6096e9930990ec9f1ab831ae0fbd0917f9b /pango
parentba062f98b7005aee8b2bd129da85f11a9284407d (diff)
downloadpango-7a9b8fb2374b6459a52f10e1a1ef732b8cff1c27.tar.gz
Fix an excess copy. (pango_fc_font_map_get_patterns): Add back a call to
2005-07-21 Owen Taylor <otaylor@redhat.com> * pango/pangofc-fontmap.c (pango_fc_font_map_add): Fix an excess copy. (pango_fc_font_map_get_patterns): Add back a call to FcPatternDestroy() that got dropped somehow.
Diffstat (limited to 'pango')
-rw-r--r--pango/pangofc-fontmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index d614e4e7..86387ae2 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -550,9 +550,7 @@ pango_fc_font_map_add (PangoFcFontMap *fcfontmap,
fcfont->context_key = key_copy->context_key;
fcfont->matrix = key.matrix;
- g_hash_table_insert (priv->font_hash,
- font_hash_key_copy (&key),
- fcfont);
+ g_hash_table_insert (priv->font_hash, key_copy, fcfont);
}
static PangoFcFont *
@@ -1124,6 +1122,8 @@ pango_fc_font_map_get_patterns (PangoFontMap *fontmap,
}
}
+ FcPatternDestroy (pattern);
+
FcFontSetSortDestroy (font_patterns);
patterns->key = fontset_hash_key_copy (&key);