The fontconfig check added in r30044 wasn't safe. This makes it more robust.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30046 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
adrian 2009-12-16 22:36:17 +00:00
parent d018006adc
commit 1078baf9aa
1 changed files with 1 additions and 1 deletions

View File

@ -1164,7 +1164,7 @@ void load_font_ft(int width, int height, font_desc_t** fontp, const char *font_n
FcDefaultSubstitute(fc_pattern);
fc_pattern2 = fc_pattern;
fc_pattern = FcFontMatch(0, fc_pattern, &result);
if (result == FcResultMatch) {
if (fc_pattern) {
FcPatternDestroy(fc_pattern2);
FcPatternGetBool(fc_pattern, FC_SCALABLE, 0, &scalable);
if (scalable != FcTrue) {