From 075f8d9626dca1e14ca1772d25f477e13045adf4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 26 Jul 2015 13:23:08 -0700 Subject: [PATCH] * src/ftfont.c (ftfont_close): Add comment re Bug#20890. --- src/ftfont.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ftfont.c b/src/ftfont.c index b37b404c5ef..41d99dffeb6 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -1315,6 +1315,10 @@ ftfont_open (struct frame *f, Lisp_Object entity, int pixel_size) static void ftfont_close (struct font *font) { + /* FIXME: Although this function can be called while garbage-collecting, + the function assumes that Lisp data structures are properly-formed. + This invalid assumption can lead to core dumps (Bug#20890). */ + struct ftfont_info *ftfont_info = (struct ftfont_info *) font; Lisp_Object val, cache; -- 2.39.2