summaryrefslogtreecommitdiff
path: root/pango/pangox-fontmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangox-fontmap.c')
-rw-r--r--pango/pangox-fontmap.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/pango/pangox-fontmap.c b/pango/pangox-fontmap.c
index 3681b939..b4f5043f 100644
--- a/pango/pangox-fontmap.c
+++ b/pango/pangox-fontmap.c
@@ -374,7 +374,12 @@ pango_x_font_map_finalize (GObject *object)
pango_x_font_cache_free (xfontmap->font_cache);
- /* FIXME: Lots more here */
+ /* FIXME: None of these hashtables free their key/values
+ g_hash_table_destroy (xfontmap->families);
+ g_hash_table_destroy (xfontmap->size_infos);
+ g_hash_table_destroy (xfontmap->to_atom_cache);
+ g_hash_table_destroy (xfontmap->from_atom_cache);
+ */
fontmaps = g_list_remove (fontmaps, xfontmap);
@@ -1100,7 +1105,7 @@ pango_x_insert_font (PangoXFontMap *xfontmap,
size_info = g_hash_table_lookup (xfontmap->size_infos, identifier);
if (!size_info)
{
- size_info = g_new (PangoXSizeInfo, 1);
+ size_info = g_slice_new (PangoXSizeInfo);
size_info->identifier = identifier;
size_info->xlfds = NULL;