Minor
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 16 Jan 2013 13:05:07 +0000 (07:05 -0600)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 16 Jan 2013 13:05:07 +0000 (07:05 -0600)
src/fcfreetype.c

index 9ac2fa9..faf3c35 100644 (file)
@@ -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