Make face immutable in hb_font_set_face()

pull/1826/head
Behdad Esfahbod 6 years ago
parent 0d425e1eea
commit df6edcd44c
  1. 1
      src/hb-font.cc

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

Loading…
Cancel
Save