]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/frame.c (gui_set_font): Reference image cache after reassignment.
authorPo Lu <luangruo@yahoo.com>
Thu, 20 Jun 2024 09:20:10 +0000 (17:20 +0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 21 Jun 2024 19:00:51 +0000 (21:00 +0200)
(cherry picked from commit b8affdb7b5760b3681ada9dcba78dd3c07405b61)

src/frame.c

index cf894db68368f79372586ac9204ff4f2d69b1e83..7f4bf274ad99ba61ee0a79d3632687719a28509e 100644 (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++;
        }
     }