From: Patrick Lam Date: Mon, 13 Feb 2006 22:19:30 +0000 (+0000) Subject: Fix memory leak in error condition code. X-Git-Tag: fc-2_3_94~20 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f8a17f329815cfa5416142811b96d16f2a5cca93;p=fontconfig.git Fix memory leak in error condition code. --- 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;