diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2013-01-16 07:05:07 -0600 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2013-01-16 07:05:07 -0600 |
commit | 106c4f73119e00a7804ef79ee556f1111d680e32 (patch) | |
tree | 5dc44e6d3c25673914878ed46fe8f88d4443a3bb | |
parent | 1a5d0daea0173e2cc47d76d2022467f0dbd423f0 (diff) | |
download | fontconfig-106c4f73119e00a7804ef79ee556f1111d680e32.tar.gz |
Minor
-rw-r--r-- | src/fcfreetype.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 9ac2fa9..faf3c35 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -1706,7 +1706,8 @@ FcFreeTypeQueryFace (const FT_Face face, { const char *font_format = FT_Get_X11_Font_Format (face); if (font_format) - FcPatternAddString (pat, FC_FONTFORMAT, (FcChar8 *) font_format); + if (!FcPatternAddString (pat, FC_FONTFORMAT, (FcChar8 *) font_format)) + goto bail2; } #endif |