Fix memory leak in error condition code.
This commit is contained in:
parent
5657098e29
commit
f8a17f3298
|
@ -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>
|
2006-02-13 Mike Fabian <mfabian@suse.de>
|
||||||
reviewed by: plam
|
reviewed by: plam
|
||||||
* src/fcfreetype.c (FcFreeTypeQuery):
|
* src/fcfreetype.c (FcFreeTypeQuery):
|
||||||
|
|
|
@ -1600,9 +1600,9 @@ FcFreeTypeQuery (const FcChar8 *file,
|
||||||
for (i = 0; i < face->num_fixed_sizes; i++)
|
for (i = 0; i < face->num_fixed_sizes; i++)
|
||||||
if (!FcPatternAddDouble (pat, FC_PIXEL_SIZE,
|
if (!FcPatternAddDouble (pat, FC_PIXEL_SIZE,
|
||||||
FcGetPixelSize (face, i)))
|
FcGetPixelSize (face, i)))
|
||||||
goto bail1;
|
goto bail2;
|
||||||
if (!FcPatternAddBool (pat, FC_ANTIALIAS, FcFalse))
|
if (!FcPatternAddBool (pat, FC_ANTIALIAS, FcFalse))
|
||||||
goto bail1;
|
goto bail2;
|
||||||
#if HAVE_FT_GET_BDF_PROPERTY
|
#if HAVE_FT_GET_BDF_PROPERTY
|
||||||
if(face->num_fixed_sizes == 1) {
|
if(face->num_fixed_sizes == 1) {
|
||||||
int rc;
|
int rc;
|
||||||
|
|
Loading…
Reference in New Issue