提交 0dcc7b49 编写于 作者: B Behdad Esfahbod

[var] Minor lifecycle adjustment

上级 bf0d3a66
......@@ -1556,11 +1556,11 @@ hb_font_set_var_coords_normalized (hb_font_t *font,
if (unlikely (coords_length && !copy))
return;
free (font->coords);
if (coords_length)
memcpy (copy, coords, coords_length * sizeof (coords[0]));
free (font->coords);
font->coords = copy;
font->num_coords = coords_length;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册