Fix bug#66151

* src/fontset.c (free_realized_fontsets): Never call
recompute_basic_faces on dead frames.  (bug#66151)
This commit is contained in:
Po Lu 2024-05-07 08:51:25 +08:00
parent 67e1b9d055
commit 6583916a05

View file

@ -1366,10 +1366,11 @@ free_realized_fontsets (Lisp_Object base)
if (CHAR_TABLE_P (this) && EQ (FONTSET_BASE (this), base))
{
Fclear_face_cache (Qt);
/* This is in case some Lisp calls this function and then
proceeds with calling some other function, like font-at,
which needs the basic faces. */
recompute_basic_faces (XFRAME (FONTSET_FRAME (this)));
if (FRAME_LIVE_P (XFRAME (FONTSET_FRAME (this))))
/* This is in case some Lisp calls this function and then
proceeds with calling some other function, like font-at,
which needs the basic faces. */
recompute_basic_faces (XFRAME (FONTSET_FRAME (this)));
break;
}
}