diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ftfont.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ftfont.c b/src/ftfont.c index 4382fd02211..bdb1dff8cb9 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -1246,6 +1246,12 @@ ftfont_close (struct font *font) | |||
| 1246 | /* FIXME: Although this function can be called while garbage-collecting, | 1246 | /* FIXME: Although this function can be called while garbage-collecting, |
| 1247 | the function assumes that Lisp data structures are properly-formed. | 1247 | the function assumes that Lisp data structures are properly-formed. |
| 1248 | This invalid assumption can lead to core dumps (Bug#20890). */ | 1248 | This invalid assumption can lead to core dumps (Bug#20890). */ |
| 1249 | #ifdef USE_CAIRO | ||
| 1250 | /* Although this works around Bug#20890, it is probably not the | ||
| 1251 | right thing to do. */ | ||
| 1252 | if (gc_in_progress) | ||
| 1253 | return; | ||
| 1254 | #endif | ||
| 1249 | 1255 | ||
| 1250 | struct ftfont_info *ftfont_info = (struct ftfont_info *) font; | 1256 | struct ftfont_info *ftfont_info = (struct ftfont_info *) font; |
| 1251 | Lisp_Object val, cache; | 1257 | Lisp_Object val, cache; |