提交 1c318302 编写于 作者: B Behdad Esfahbod

Remove unused realloc

We always allocate and grow str and pos together.
上级 76691f02
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册