Fix FT_Face finalizer call

This commit is contained in:
Behdad Esfahbod 2009-11-06 15:19:22 -05:00
parent 3d14528b8b
commit edb54e9aec
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ hb_ft_face_create_cached (FT_Face ft_face)
if (HB_UNLIKELY (!ft_face->generic.data || ft_face->generic.finalizer != (FT_Generic_Finalizer) hb_ft_face_finalize)) if (HB_UNLIKELY (!ft_face->generic.data || ft_face->generic.finalizer != (FT_Generic_Finalizer) hb_ft_face_finalize))
{ {
if (ft_face->generic.finalizer) if (ft_face->generic.finalizer)
ft_face->generic.finalizer (ft_face->generic.data); ft_face->generic.finalizer (ft_face);
ft_face->generic.data = hb_ft_face_create (ft_face, NULL); ft_face->generic.data = hb_ft_face_create (ft_face, NULL);
ft_face->generic.finalizer = (FT_Generic_Finalizer) hb_ft_face_finalize; ft_face->generic.finalizer = (FT_Generic_Finalizer) hb_ft_face_finalize;