Minor
This commit is contained in:
parent
ca54440324
commit
dcb4cd400f
|
@ -1390,9 +1390,7 @@ hb_font_create_sub_font (hb_font_t *parent)
|
||||||
font->ptem = parent->ptem;
|
font->ptem = parent->ptem;
|
||||||
|
|
||||||
font->num_coords = parent->num_coords;
|
font->num_coords = parent->num_coords;
|
||||||
if (!font->num_coords)
|
if (font->num_coords)
|
||||||
font->coords = nullptr;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
unsigned int size = parent->num_coords * sizeof (parent->coords[0]);
|
unsigned int size = parent->num_coords * sizeof (parent->coords[0]);
|
||||||
font->coords = (int *) malloc (size);
|
font->coords = (int *) malloc (size);
|
||||||
|
|
Loading…
Reference in New Issue