mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[var] Minor lifecycle adjustment
This commit is contained in:
1 parent
bf0d3a665b
commit
0dcc7b49a8
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user