Fix NULL pointer dereferences in xpm_load_image
authorPo Lu <luangruo@yahoo.com>
Wed, 24 Jul 2024 03:57:28 +0000 (11:57 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 24 Jul 2024 03:57:28 +0000 (11:57 +0800)
commitb5543c54bf08c4fa4cae6b7f404a37a2aee60cdf
tree6d150521a85d178acd21593c7e32ab9c8841b4a9
parent1ee8579eb7d7aae9405f33099559ac8205a59be2
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.
src/image.c