summaryrefslogtreecommitdiff
path: root/pango/pangocairo-font.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@src.gnome.org>2008-01-25 03:33:41 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-01-25 03:33:41 +0000
commitaa8c59cc59ad897f2934e49fd69034876cc00215 (patch)
tree7fe64d3473d0d0281c86a8b3fd0e5b9d18f41451 /pango/pangocairo-font.c
parente8d3f32d6c0733add2d78634382171350c12ca3e (diff)
downloadpango-aa8c59cc59ad897f2934e49fd69034876cc00215.tar.gz
Minor reordering to make debugging easier.
svn path=/trunk/; revision=2554
Diffstat (limited to 'pango/pangocairo-font.c')
-rw-r--r--pango/pangocairo-font.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pango/pangocairo-font.c b/pango/pangocairo-font.c
index 09255862..0c439284 100644
--- a/pango/pangocairo-font.c
+++ b/pango/pangocairo-font.c
@@ -108,8 +108,6 @@ _pango_cairo_font_private_get_scaled_font (PangoCairoFontPrivate *cf_priv)
cairo_font_face_destroy (font_face);
done:
- _pango_cairo_font_private_scaled_font_data_destroy (cf_priv->data);
- cf_priv->data = NULL;
if (G_UNLIKELY (cf_priv->scaled_font == NULL || cairo_scaled_font_status (cf_priv->scaled_font) != CAIRO_STATUS_SUCCESS))
{
@@ -138,6 +136,9 @@ done:
}
}
+ _pango_cairo_font_private_scaled_font_data_destroy (cf_priv->data);
+ cf_priv->data = NULL;
+
return cf_priv->scaled_font;
}