]> code.delx.au - gnu-emacs/commit
Fix handling of image cache refcounts. (Bug#20802)
authorMartin Rudalics <rudalics@gmx.at>
Tue, 16 Jun 2015 13:09:24 +0000 (15:09 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 16 Jun 2015 13:09:24 +0000 (15:09 +0200)
commit93ae9f46e7947aeb2180e3b8a98b551fa143ba51
tree39aebf3eddb597848c0e7375598fa7eb58e55fea
parent32a488344057f210b51f4618feb3a85799eef0c5
Fix handling of image cache refcounts.  (Bug#20802)

This backports Eli Zaretskii's solution of this problem for W32
to X and NS.

* src/nsfns.m (image_cache_refcount): Define unconditionally.
(unwind_create_frame): If the image cache's reference count
hasn't been updated yet, do that now.
(Fx_create_frame): Set image_cache_refcount unconditionally.
* src/xfns.c (image_cache_refcount): Define unconditionally.
(unwind_create_frame): If the image cache's reference count
hasn't been updated yet, do that now.
(Fx_create_frame, x_create_tip_frame): Set image_cache_refcount
unconditionally.
* src/w32fns.c (image_cache_refcount): Make it a ptrdiff_t as on
X and NS.
src/nsfns.m
src/w32fns.c
src/xfns.c