This commit is contained in:
Behdad Esfahbod 2013-01-16 07:05:07 -06:00
parent 1a5d0daea0
commit 106c4f7311
1 changed files with 2 additions and 1 deletions

View File

@ -1706,7 +1706,8 @@ FcFreeTypeQueryFace (const FT_Face face,
{ {
const char *font_format = FT_Get_X11_Font_Format (face); const char *font_format = FT_Get_X11_Font_Format (face);
if (font_format) if (font_format)
FcPatternAddString (pat, FC_FONTFORMAT, (FcChar8 *) font_format); if (!FcPatternAddString (pat, FC_FONTFORMAT, (FcChar8 *) font_format))
goto bail2;
} }
#endif #endif