From 106c4f73119e00a7804ef79ee556f1111d680e32 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 16 Jan 2013 07:05:07 -0600 Subject: Minor --- src/fcfreetype.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1