aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2024-07-24 11:59:53 +0800
committerPo Lu2024-07-24 11:59:53 +0800
commit3a76354e092f291037367b65b24c1963fd0fe31f (patch)
treee4c470abb7d1ccaf4575f26bbaca06625803afd1 /src
parentb5543c54bf08c4fa4cae6b7f404a37a2aee60cdf (diff)
downloademacs-3a76354e092f291037367b65b24c1963fd0fe31f.tar.gz
emacs-3a76354e092f291037367b65b24c1963fd0fe31f.zip
Adapt last change to non-NS systems
* src/image.c (xpm_load_image): Also check whether mask_img is NULL.
Diffstat (limited to 'src')
-rw-r--r--src/image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index f869a95c15d..96280f3ef46 100644
--- a/src/image.c
+++ b/src/image.c
@@ -6508,7 +6508,8 @@ xpm_load_image (struct frame *f,
6508 if (ximg) 6508 if (ximg)
6509 { 6509 {
6510 image_destroy_x_image (ximg); 6510 image_destroy_x_image (ximg);
6511 image_destroy_x_image (mask_img); 6511 if (mask_img)
6512 image_destroy_x_image (mask_img);
6512 image_clear_image (f, img); 6513 image_clear_image (f, img);
6513 } 6514 }
6514 return 0; 6515 return 0;