diff options
Diffstat (limited to 'pango/pangofc-font.c')
-rw-r--r-- | pango/pangofc-font.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c index 9e0ea5d7..58307906 100644 --- a/pango/pangofc-font.c +++ b/pango/pangofc-font.c @@ -259,9 +259,7 @@ pango_fc_font_get_property (GObject *object, { PangoFcFont *fcfont = PANGO_FC_FONT (object); PangoFontMap *fontmap = g_weak_ref_get ((GWeakRef *) &fcfont->fontmap); - g_value_set_object (value, fontmap); - if (fontmap) - g_object_unref (fontmap); + g_value_take_object (value, fontmap); } break; default: |