]> git.eshelyaron.com Git - emacs.git/commit
Fix NULL pointer dereferences in xpm_load_image
authorPo Lu <luangruo@yahoo.com>
Wed, 24 Jul 2024 03:57:28 +0000 (11:57 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 24 Jul 2024 16:57:56 +0000 (18:57 +0200)
commitbaaa343780a573f1a796617f07dd54f2a3df690d
tree4ea7dc1e605d50a1f2b6b8e49ffeb71024d53f6b
parentf97fd1684b424860aa4da787999ea75aaca68047
Fix NULL pointer dereferences in xpm_load_image

* src/image.c (x_destroy_x_image): Correct test condition.
(xpm_load_image): Do not release image data if it is still to be
created.

(cherry picked from commit b5543c54bf08c4fa4cae6b7f404a37a2aee60cdf)
src/image.c