From f8a17f329815cfa5416142811b96d16f2a5cca93 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Mon, 13 Feb 2006 22:19:30 +0000 Subject: [PATCH] Fix memory leak in error condition code. --- ChangeLog | 5 +++++ src/fcfreetype.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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;