diff options
author | Aaron Boxer <boxerab@gmail.com> | 2020-06-05 12:05:04 -0400 |
---|---|---|
committer | Aaron Boxer <boxerab@gmail.com> | 2020-06-08 08:31:54 -0400 |
commit | a56ef2b701b115ebde57be7339a95d6745f8c1e6 (patch) | |
tree | d00dedcae0e4ffafd9e5b3a35620d76896c54ada /pango/pangowin32-fontmap.c | |
parent | 475e2d7cc399241441d06a36542bdcb577276ea3 (diff) | |
download | pango-a56ef2b701b115ebde57be7339a95d6745f8c1e6.tar.gz |
pangowin32-fontmap: delete no longer needed font map aliases
Diffstat (limited to 'pango/pangowin32-fontmap.c')
-rw-r--r-- | pango/pangowin32-fontmap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c index 09de5fa0..b43685c7 100644 --- a/pango/pangowin32-fontmap.c +++ b/pango/pangowin32-fontmap.c @@ -644,8 +644,9 @@ create_standard_family (PangoWin32FontMap *win32fontmap, int i; int n_aliases; char **aliases; + PangoWin32FontMapClass *class = (PangoWin32FontMapClass*) G_OBJECT_GET_CLASS (win32fontmap); - lookup_aliases (win32fontmap->aliases, standard_family_name, &aliases, &n_aliases); + lookup_aliases (class->aliases, standard_family_name, &aliases, &n_aliases); for (i = 0; i < n_aliases; i++) { PangoWin32Family *existing_family = g_hash_table_lookup (win32fontmap->families, aliases[i]); @@ -712,10 +713,6 @@ _pango_win32_font_map_init (PangoWin32FontMap *win32fontmap) win32fontmap->font_cache = pango_win32_font_cache_new (); win32fontmap->freed_fonts = g_queue_new (); - win32fontmap->aliases = g_hash_table_new_full ((GHashFunc)alias_hash, - (GEqualFunc)alias_equal, - (GDestroyNotify)alias_free, - NULL); win32fontmap->warned_fonts = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, @@ -862,7 +859,6 @@ pango_win32_font_map_finalize (GObject *object) pango_win32_font_cache_free (win32fontmap->font_cache); g_hash_table_destroy (win32fontmap->warned_fonts); - g_hash_table_destroy (win32fontmap->aliases); g_hash_table_destroy (win32fontmap->fonts); g_hash_table_destroy (win32fontmap->families); |