projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf0d3a6
)
[var] Minor lifecycle adjustment
author
Behdad Esfahbod
<behdad@behdad.org>
Sat, 21 Jan 2017 22:50:22 +0000
(14:50 -0800)
committer
Behdad Esfahbod
<behdad@behdad.org>
Sat, 21 Jan 2017 22:50:22 +0000
(14:50 -0800)
src/hb-font.cc
patch
|
blob
|
history
diff --git
a/src/hb-font.cc
b/src/hb-font.cc
index
a8b9e4c
..
e2a0a5f
100644
(file)
--- a/
src/hb-font.cc
+++ b/
src/hb-font.cc
@@
-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;
}