Make face immutable in hb_font_set_face()
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 5 Jul 2019 20:45:15 +0000 (13:45 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 5 Jul 2019 20:45:15 +0000 (13:45 -0700)
src/hb-font.cc

index f450d88..5727247 100644 (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);