Fix rare segfaults due to freed fontsets
* src/xfaces.c (recompute_basic_faces): Force complete recalculation of all the faces. (Bug#72692)
This commit is contained in:
parent
44c26140b6
commit
4211d85eec
1 changed files with 5 additions and 0 deletions
|
@ -736,6 +736,11 @@ recompute_basic_faces (struct frame *f)
|
|||
clear_face_cache (false);
|
||||
if (!realize_basic_faces (f))
|
||||
emacs_abort ();
|
||||
/* Force complete face recalculation next time we use the display
|
||||
code, because realize_basic_faces could free the fontset used
|
||||
by non-ASCII faces corresponding to ASCII faces of the basic
|
||||
faces, and attempt to use that fontset might segfault. */
|
||||
f->face_change = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue