mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[buffer] Add a missing immutable check
This commit is contained in:
1 parent
3f59dce67f
commit
7ffc215001
1 file changed
+3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user