From 94a496889648618200210638a299194c56b7b16f Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 20 Jun 2024 17:20:10 +0800 Subject: [PATCH] * src/frame.c (gui_set_font): Reference image cache after reassignment. (cherry picked from commit b8affdb7b5760b3681ada9dcba78dd3c07405b61) --- src/frame.c | 1 + 1 file changed, 1 insertion(+) 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++; } } -- 2.39.2