mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
Make face immutable in hb_font_set_face()
This commit is contained in:
1 parent
0d425e1eea
commit
df6edcd44c
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user