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)
CAIRO_MUTEX_LOCK (unscaled->mutex);
font_map = _cairo_ft_unscaled_font_map_lock ();
if (unscaled->face)
_cairo_ft_unscaled_font_map_unlock ();
return unscaled->face;
/* If this unscaled font was created from an FT_Face then we just
* returned it above. */
assert (!unscaled->from_face);
font_map = _cairo_ft_unscaled_font_map_lock ();
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