# HG changeset patch # User eugeni # Date 1214232415 0 # Node ID a2c8efd917eab6dd61ab93776a434e96affc6472 # Parent a0e00d065593736e036774af47029ad8e649a581 Check if the font set returned from FcFontSort in not NULL. diff -r a0e00d065593 -r a2c8efd917ea libass/ass_fontconfig.c --- a/libass/ass_fontconfig.c Mon Jun 23 14:46:52 2008 +0000 +++ b/libass/ass_fontconfig.c Mon Jun 23 14:46:55 2008 +0000 @@ -129,6 +129,8 @@ goto error; fset = FcFontSort(priv->config, pat, FcTrue, NULL, &result); + if (!fset) + goto error; for (curf = 0; curf < fset->nfont; ++curf) { FcPattern* curp = fset->fonts[curf];