[buffer] Add a missing immutable check

This commit is contained in:
Behdad Esfahbod committed 2026-02-24 04:00:48 -03:00
1 parent 3f59dce67f
commit 7ffc215001
1 file changed
+3
+3
View File
@@ -960,6 +960,9 @@ void
hb_buffer_set_content_type (hb_buffer_t *buffer,
hb_buffer_content_type_t content_type)
{
if (unlikely (hb_object_is_immutable (buffer)))
return;
buffer->content_type = content_type;
}