Merge from savannah/emacs-30

3a76354e09 Adapt last change to non-NS systems
This commit is contained in:
Po Lu 2024-07-24 12:01:02 +08:00
commit 135ce96f1e

View file

@ -6505,7 +6505,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;