[autofit] Fix reallocation error introduced in 2016-02-27 (#47310).

* src/autofit/aflatin.c (af_latin_hints_compute_segments): Reassign
`prev_segment' after reallocation.
2.6.5
Werner Lemberg 9 years ago
parent 015c6e08a1
commit 3eb6f66a37
  1. 7
      ChangeLog
  2. 5
      src/autofit/aflatin.c

@ -1,3 +1,10 @@
2016-03-01 Werner Lemberg <wl@gnu.org>
[autofit] Fix reallocation error introduced in 2016-02-27 (#47310).
* src/autofit/aflatin.c (af_latin_hints_compute_segments): Reassign
`prev_segment' after reallocation.
2016-03-01 Werner Lemberg <wl@gnu.org>
Fix clang warnings.

@ -1701,6 +1701,11 @@
segment->first = point;
segment->last = point;
/* `af_axis_hints_new_segment' reallocates memory, */
/* thus we have to refresh the `prev_segment' pointer */
if ( prev_segment )
prev_segment = segment - 1;
min_pos = max_pos = point->u;
min_coord = max_coord = point->v;
min_flags = max_flags = point->flags;

Loading…
Cancel
Save