* src/frame.c (gui_set_font): Reference image cache after reassignment.

This commit is contained in:
Po Lu 2024-06-20 17:20:10 +08:00
parent e6169e9de1
commit b8affdb7b5

View file

@ -4838,6 +4838,7 @@ gui_set_font (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
new image cache with IWIDTH. */
FRAME_IMAGE_CACHE (f)->refcount--;
FRAME_IMAGE_CACHE (f) = share_image_cache (f);
FRAME_IMAGE_CACHE (f)->refcount++;
}
}