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:
parent
b5543c54bf
commit
3a76354e09
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue