提交 dcb4cd40 编写于 作者: B Behdad Esfahbod

Minor

上级 ca544403
......@@ -1390,9 +1390,7 @@ hb_font_create_sub_font (hb_font_t *parent)
font->ptem = parent->ptem;
font->num_coords = parent->num_coords;
if (!font->num_coords)
font->coords = nullptr;
else
if (font->num_coords)
{
unsigned int size = parent->num_coords * sizeof (parent->coords[0]);
font->coords = (int *) malloc (size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册