From: Po Lu Date: Thu, 20 Jun 2024 09:20:10 +0000 (+0800) Subject: * src/frame.c (gui_set_font): Reference image cache after reassignment. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=94a496889648618200210638a299194c56b7b16f;p=emacs.git * src/frame.c (gui_set_font): Reference image cache after reassignment. (cherry picked from commit b8affdb7b5760b3681ada9dcba78dd3c07405b61) --- diff --git a/src/frame.c b/src/frame.c index cf894db6836..7f4bf274ad9 100644 --- a/src/frame.c +++ b/src/frame.c @@ -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++; } }