Commit d2f1667c authored by Michal Sudolsky's avatar Michal Sudolsky
Browse files

fix usage of FT_Face after FT_Done_Face

parent f7054c89
...@@ -712,14 +712,18 @@ _cairo_ft_unscaled_font_lock_face (cairo_ft_unscaled_font_t *unscaled) ...@@ -712,14 +712,18 @@ _cairo_ft_unscaled_font_lock_face (cairo_ft_unscaled_font_t *unscaled)
CAIRO_MUTEX_LOCK (unscaled->mutex); CAIRO_MUTEX_LOCK (unscaled->mutex);
unscaled->lock_count++; unscaled->lock_count++;
font_map = _cairo_ft_unscaled_font_map_lock ();
if (unscaled->face) if (unscaled->face)
{
_cairo_ft_unscaled_font_map_unlock ();
return unscaled->face; return unscaled->face;
}
/* If this unscaled font was created from an FT_Face then we just /* If this unscaled font was created from an FT_Face then we just
* returned it above. */ * returned it above. */
assert (!unscaled->from_face); assert (!unscaled->from_face);
font_map = _cairo_ft_unscaled_font_map_lock ();
{ {
assert (font_map != NULL); assert (font_map != NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment