summaryrefslogtreecommitdiff
path: root/pango/pangofc-fontmap.c
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2018-01-04 23:11:44 -0800
committerChristian Hergert <chergert@redhat.com>2018-01-05 12:31:43 -0800
commit3ccf578a2d39350d19af12bceaf700cb6b178436 (patch)
tree33df1ffd7eade5b829478ea61dfd52fb1ba38b51 /pango/pangofc-fontmap.c
parent694cb9ee0af00c38e036bf693d01ae9739e68f2b (diff)
downloadpango-3ccf578a2d39350d19af12bceaf700cb6b178436.tar.gz
fontmap: fix warnings from recent g_object_ref() changes
https://bugzilla.gnome.org/show_bug.cgi?id=792231
Diffstat (limited to 'pango/pangofc-fontmap.c')
-rw-r--r--pango/pangofc-fontmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 9ed9d959..cc4694d2 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -1566,7 +1566,7 @@ pango_fc_font_map_new_font (PangoFcFontMap *fcfontmap,
fcfont = g_hash_table_lookup (priv->font_hash, &key);
if (fcfont)
- return g_object_ref (fcfont);
+ return g_object_ref (PANGO_FONT (fcfont));
class = PANGO_FC_FONT_MAP_GET_CLASS (fcfontmap);
@@ -1797,7 +1797,7 @@ pango_fc_font_map_load_fontset (PangoFontMap *fontmap,
pango_font_description_free (key.desc);
g_free (key.variations);
- return g_object_ref (fontset);
+ return g_object_ref (PANGO_FONTSET (fontset));
}
/**