diff --git a/ChangeLog b/ChangeLog index 5ee8fab..6a072a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-02-13 Patrick Lam + * src/fcfreetype.c (FcFreeTypeQuery): + + Fix memory leak in error condition code. + 2006-02-13 Mike Fabian reviewed by: plam * src/fcfreetype.c (FcFreeTypeQuery): diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 9dc45fc..cc73f5c 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -1600,9 +1600,9 @@ FcFreeTypeQuery (const FcChar8 *file, for (i = 0; i < face->num_fixed_sizes; i++) if (!FcPatternAddDouble (pat, FC_PIXEL_SIZE, FcGetPixelSize (face, i))) - goto bail1; + goto bail2; if (!FcPatternAddBool (pat, FC_ANTIALIAS, FcFalse)) - goto bail1; + goto bail2; #if HAVE_FT_GET_BDF_PROPERTY if(face->num_fixed_sizes == 1) { int rc;