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

* src/truetype/ttgload.c (load_truetype_glyph): Thinko; initialize
`outline.points' also.
This commit is contained in:
Werner Lemberg 2016-06-25 18:09:22 +02:00
parent d89f64627b
commit 8ba407a7fe
2 changed files with 8 additions and 0 deletions

View File

@ -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.

View File

@ -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;