s-u / Cairo

R graphics device using cairo graphics library for creating high-quality output
12 stars 10 forks source link

segfault in `CairoFontMatch` if `FcNAmeParse` returns `NULL` #10

Closed s-u closed 9 years ago

s-u commented 9 years ago

4 0x00007ffff3ca509f in cairo_font_match (args=0x6080d8) at cairogd.c:394

394 FcPatternDel(vpat,FC_CHARSET); (gdb) l 389 FcChar8 *fname; 390 391 fname = FcNameUnparse(fs->fonts[j]); 392 if (fname){ 393 vpat = FcNameParse(fname); 394 FcPatternDel(vpat,FC_CHARSET);