]> git.eshelyaron.com Git - emacs.git/commit
Fix leaks of XImage structures in image.c
authorPo Lu <luangruo@yahoo.com>
Tue, 1 Nov 2022 04:51:38 +0000 (12:51 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 1 Nov 2022 04:54:03 +0000 (12:54 +0800)
commitecdbf82cb920f0648b6398502091868bb1bf7829
tree1cbba355aa23f5edb7e4b06ac26316601ef56487
parenta7ded19ffce57bf8b475aeb28fbfa72e91f4d4d9
Fix leaks of XImage structures in image.c

* src/image.c (image_clear_image, lookup_image): Fix coding
style.
(x_destroy_x_image): Remove unnecessary assertion.  Call
XDestroyImage, since otherwise only the image data is freed.
(image_from_emacs_colors): Rename variables to make more sense.
src/image.c