]> git.wh0rd.org Git - fontconfig.git/commitdiff
Fix memory leak in error condition code.
authorPatrick Lam <plam@MIT.EDU>
Mon, 13 Feb 2006 22:19:30 +0000 (22:19 +0000)
committerPatrick Lam <plam@MIT.EDU>
Mon, 13 Feb 2006 22:19:30 +0000 (22:19 +0000)
ChangeLog
src/fcfreetype.c

index 5ee8fabb1efc2329e70be10346338ccce4dc5b05..6a072a01acb6538e512a85b65e6f18460821c57b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-13  Patrick Lam  <plam@mit.edu>
+       * src/fcfreetype.c (FcFreeTypeQuery):
+
+       Fix memory leak in error condition code.
+
 2006-02-13  Mike Fabian  <mfabian@suse.de>
        reviewed by: plam
        * src/fcfreetype.c (FcFreeTypeQuery):
index 9dc45fc3c347e395d5dea60855f6388eca3d7dc0..cc73f5ce4154993887855a52e35f2e1ead6be152 100644 (file)
@@ -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;