This commit is contained in:
Behdad Esfahbod 2009-11-05 19:20:06 -05:00
parent 850dc5bb55
commit 25edb940ab
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ hb_face_t *
hb_ft_face_create_cached (FT_Face ft_face) hb_ft_face_create_cached (FT_Face ft_face)
{ {
/* TODO: Not thread-safe */ /* TODO: Not thread-safe */
if (!HB_LIKELY (ft_face->generic.data && ft_face->generic.finalizer == (FT_Generic_Finalizer) hb_face_destroy)) if (HB_UNLIKELY (!ft_face->generic.data || ft_face->generic.finalizer != (FT_Generic_Finalizer) hb_face_destroy))
{ {
if (ft_face->generic.finalizer) if (ft_face->generic.finalizer)
ft_face->generic.finalizer (ft_face->generic.data); ft_face->generic.finalizer (ft_face->generic.data);