Fix valgrind warning.

* src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize
`result' array.
dbgmem-more-limiters
Werner Lemberg 15 years ago
parent 4f7851e3d2
commit 8bebaa74cc
  1. 7
      ChangeLog
  2. 3
      src/base/ftoutln.c

@ -1,3 +1,10 @@
2010-06-27 Werner Lemberg <wl@gnu.org>
Fix valgrind warning.
* src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize
`result' array.
2010-06-27 Werner Lemberg <wl@gnu.org>
[cff] Fix memory leak.

@ -990,7 +990,8 @@
int i;
FT_Pos ray_y[3];
FT_Orientation result[3];
FT_Orientation result[3] =
{ FT_ORIENTATION_NONE, FT_ORIENTATION_NONE, FT_ORIENTATION_NONE };
if ( !outline || outline->n_points <= 0 )

Loading…
Cancel
Save