[truetype] Really fix deallocation in case of error (#47726).

* src/truetype/ttgload.c (load_truetype_glyph): Thinko; initialize
`outline.points' also.
2.6.5
Werner Lemberg 9 years ago
parent d89f64627b
commit 8ba407a7fe
  1. 7
      ChangeLog
  2. 1
      src/truetype/ttgload.c

@ -1,3 +1,10 @@
2016-04-24 Werner Lemberg <wl@gnu.org>
[truetype] Really fix deallocation in case of error (#47726).
* src/truetype/ttgload.c (load_truetype_glyph): Thinko; initialize
`outline.points' also.
2016-06-23 Alexei Podtelezhnikov <apodtele@gmail.com>
[smooth] Consolidate memory management.

@ -1746,6 +1746,7 @@
outline.n_points = (short)( gloader->current.num_subglyphs + 4 );
outline.n_contours = outline.n_points;
outline.points = NULL;
outline.tags = NULL;
outline.contours = NULL;

Loading…
Cancel
Save