diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 03e8e1aa4c0ba842d9bdc026983a767039a3ac01..f50d87b1ceb57ad87fe4aadd6e5cb8a3d6d5f021 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -264,12 +264,6 @@ hb_buffer_clear_positions (hb_buffer_t *buffer) buffer->have_output = FALSE; buffer->have_positions = TRUE; - if (unlikely (!buffer->pos)) - { - buffer->pos = (hb_glyph_position_t *) calloc (buffer->allocated, sizeof (buffer->pos[0])); - return; - } - memset (buffer->pos, 0, sizeof (buffer->pos[0]) * buffer->len); }