forked from minhngoc25a/freetype2
[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:
parent
d89f64627b
commit
8ba407a7fe
|
@ -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…
Reference in New Issue