diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2012-08-29 16:59:03 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2012-08-29 16:59:03 -0400 |
commit | 9f5dd43267459393c17343c3dfc3b29ee76606ce (patch) | |
tree | c4d8fe3af3af184e0666384b4d568e7eff6d5221 /pango/pangofc-font.c | |
parent | 8275c1da3db604b67d3ffac5f0143805de1507d9 (diff) | |
download | pango-9f5dd43267459393c17343c3dfc3b29ee76606ce.tar.gz |
Use g_value_take_object
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: |