]> git.eshelyaron.com Git - emacs.git/commit
Avoid segfaults due to using fonts that were closed
authorEli Zaretskii <eliz@gnu.org>
Mon, 26 Oct 2020 16:14:32 +0000 (18:14 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 26 Oct 2020 16:14:32 +0000 (18:14 +0200)
commit634bbb61f2f1b3e0fdf830f58a7ec7e39ea5a14f
tree529545df5e1424558c06b2224a54836929b6a5e7
parentcdb3c9d662c772ce25ea4d803eccd2c9e6a6ae99
Avoid segfaults due to using fonts that were closed

* src/composite.c (composition_gstring_cache_clear_font): New
function.
* src/composite.h (composition_gstring_cache_clear_font): Add
prototype.
* src/font.c (font_clear_cache): When we are about to close a
font, remove from the gstring cache any lgstring that uses this
font.  (Bug#42943)
src/composite.c
src/composite.h
src/font.c