[pango] fontmap: fix warnings from recent g_object_ref() changes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] fontmap: fix warnings from recent g_object_ref() changes
- Date: Fri, 5 Jan 2018 20:32:51 +0000 (UTC)
commit 3ccf578a2d39350d19af12bceaf700cb6b178436
Author: Christian Hergert <chergert redhat com>
Date: Thu Jan 4 23:11:44 2018 -0800
fontmap: fix warnings from recent g_object_ref() changes
https://bugzilla.gnome.org/show_bug.cgi?id=792231
pango/pangofc-fontmap.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 9ed9d95..cc4694d 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));
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]