From b2f6ceb91747653ad64297e736ceaf5a01191141 Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Thu, 16 Aug 2007 12:28:59 +0300 Subject: [PATCH] Added missing unlocks --- src/cairo-ft-font.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c index 4dc61ee..54a84a9 100644 --- a/src/cairo-ft-font.c +++ b/src/cairo-ft-font.c @@ -1851,8 +1851,10 @@ _cairo_ft_scaled_glyph_init (void *abstract_font, cairo_status_t status; face = _cairo_ft_unscaled_font_lock_face (unscaled); - if (!face) + if (!face) { + _cairo_ft_unscaled_font_unlock_face (unscaled); return CAIRO_STATUS_NO_MEMORY; + } status = _cairo_ft_unscaled_font_set_scale (scaled_font->unscaled, &scaled_font->base.scale); @@ -2543,6 +2545,7 @@ cairo_ft_scaled_font_lock_face (cairo_scaled_font_t *abstract_font) face = _cairo_ft_unscaled_font_lock_face (scaled_font->unscaled); if (face == NULL) { _cairo_scaled_font_set_error (&scaled_font->base, CAIRO_STATUS_NO_MEMORY); + _cairo_ft_unscaled_font_unlock_face (scaled_font->unscaled); return NULL; } -- 1.5.2.4