From b231aba4d6e20d2212e46017c3e1eab0723d9678 Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Thu, 16 Aug 2007 12:40:51 +0300 Subject: [PATCH] Unlock in src/cairo-type1-subset.c --- src/cairo-type1-subset.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/cairo-type1-subset.c b/src/cairo-type1-subset.c index 919b1d5..5a19935 100644 --- a/src/cairo-type1-subset.c +++ b/src/cairo-type1-subset.c @@ -1205,8 +1205,10 @@ _cairo_type1_scaled_font_is_type1 (cairo_scaled_font_t *scaled_font) unscaled = (cairo_ft_unscaled_font_t *) _cairo_ft_scaled_font_get_unscaled_font (scaled_font); face = _cairo_ft_unscaled_font_lock_face (unscaled); - if (!face) + if (!face) { + _cairo_ft_unscaled_font_unlock_face (unscaled); return FALSE; + } if (FT_Get_PS_Font_Info(face, &font_info) == 0) is_type1 = TRUE; -- 1.5.2.4