Make face immutable in hb_font_set_face()

This commit is contained in:
Behdad Esfahbod 2019-07-05 13:45:15 -07:00
parent 0d425e1eea
commit df6edcd44c

View File

@ -1601,6 +1601,7 @@ hb_font_set_face (hb_font_t *font,
hb_face_t *old = font->face;
hb_face_make_immutable (face);
font->face = hb_face_reference (face);
hb_face_destroy (old);