Adapt last change to non-NS systems

* src/image.c (xpm_load_image): Also check whether mask_img is
NULL.
This commit is contained in:
Po Lu 2024-07-24 11:59:53 +08:00
parent b5543c54bf
commit 3a76354e09

View file

@ -6508,7 +6508,8 @@ xpm_load_image (struct frame *f,
if (ximg)
{
image_destroy_x_image (ximg);
image_destroy_x_image (mask_img);
if (mask_img)
image_destroy_x_image (mask_img);
image_clear_image (f, img);
}
return 0;