ref: 8ba407a7fe911322e8f674456a74bbd7d5ead200
parent: d89f64627b33f5ba482a93a14c38afea595ccfc2
author: Werner Lemberg <[email protected]>
date: Sat Jun 25 14:09:22 EDT 2016
[truetype] Really fix deallocation in case of error (#47726). * src/truetype/ttgload.c (load_truetype_glyph): Thinko; initialize `outline.points' also.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-04-24 Werner Lemberg <[email protected]>
+
+ [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 <[email protected]>
[smooth] Consolidate memory management.
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -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;