diff --git a/ChangeLog b/ChangeLog index 2cd3b2da1..ae1c98ce1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,15 +8,18 @@ 2007-03-05 David Turner - * src/base/ftinit.c (FT_Init_FreeType): fixed a small memory leak - when FT_Init_FreeType fails for some reason + * src/base/ftinit.c (FT_Init_FreeType): Fix a small memory leak in + case FT_Init_FreeType fails for some reason. Problem reported by + Maximilian Schwerin . - * src/truetype/ttobs.c (tt_size_init_bytecode): bugfix, we need to - clear the x_ppem and y_ppem fields of the TT_Size.metrics structure, - note those of TT_Size.root.metrics. duh !! + * src/truetype/ttobs.c (tt_size_init_bytecode): Clear the `x_ppem' + and `y_ppem' fields of the `TT_Size.metrics' structure, not those of + `TT_Size.root.metrics'. Problem reported by Daniel Glöckner + . - * src/type1/t1afm.c (T1_Read_PFM): bug fix: read the kerning values - as 16-bit *signed* values, not unsigned ones. + * src/type1/t1afm.c (T1_Read_PFM): Read kerning values as 16-bit + signed values, not unsigned ones. Problem reported by Johannes + Walther . 2007-02-21 David Turner diff --git a/src/base/ftinit.c b/src/base/ftinit.c index ad6abea41..7af19c3d8 100644 --- a/src/base/ftinit.c +++ b/src/base/ftinit.c @@ -4,7 +4,7 @@ /* */ /* FreeType initialization layer (body). */ /* */ -/* Copyright 1996-2001, 2002, 2005 by */ +/* Copyright 1996-2001, 2002, 2005, 2007 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -124,10 +124,8 @@ /* default drivers. */ error = FT_New_Library( memory, alibrary ); - if (error) - { - FT_Done_Memory(memory); - } + if ( error ) + FT_Done_Memory( memory ); else { (*alibrary)->version_major = FREETYPE_MAJOR;