summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-06-14 19:54:19 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-06-14 19:54:19 +0000
commit52930d8a275dd6628afdad3dfab8ca362de621a4 (patch)
tree226d806136bb8bc75bf3945c043fa77326fcb135 /pango/pango-context.c
parent265c86ac01a154c35de7db3679052087c0b02dd3 (diff)
downloadpango-52930d8a275dd6628afdad3dfab8ca362de621a4.tar.gz
Chain up from finalize. (#307547, Paolo Borelli)
2005-06-14 Owen Taylor <otaylor@redhat.com> * pango/opentype/pango-ot-info.c (pango_ot_info_finalize) pango/opentype/pango-ot-ruleset.c (pango_ot_ruleset_finalize): Chain up from finalize. (#307547, Paolo Borelli) * pango/opentype/pango-ot-info.c (pango_ot_info_finalizer): make accidentally public function static.
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 56b58fb1..3ee465ff 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -783,7 +783,10 @@ itemize_state_fill_shaper (ItemizeState *state,
PangoItem *item = l->data;
if (item->analysis.shape_engine)
break;
- item->analysis.font = g_object_ref (font);
+ if (font)
+ item->analysis.font = g_object_ref (font);
+ else
+ item->analysis.font = NULL;
item->analysis.shape_engine = shape_engine;
}
}