[autofit] Fix reallocation error introduced in 2016-02-27 (#47310).
* src/autofit/aflatin.c (af_latin_hints_compute_segments): Reassign `prev_segment' after reallocation.
This commit is contained in:
parent
015c6e08a1
commit
3eb6f66a37
|
@ -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>
|
2016-03-01 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
Fix clang warnings.
|
Fix clang warnings.
|
||||||
|
|
|
@ -1701,6 +1701,11 @@
|
||||||
segment->first = point;
|
segment->first = point;
|
||||||
segment->last = 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_pos = max_pos = point->u;
|
||||||
min_coord = max_coord = point->v;
|
min_coord = max_coord = point->v;
|
||||||
min_flags = max_flags = point->flags;
|
min_flags = max_flags = point->flags;
|
||||||
|
|
Loading…
Reference in New Issue