diff options
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangocairo-font.c | 5 |
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; } |