diff options
| author | Po Lu | 2024-07-24 11:59:53 +0800 |
|---|---|---|
| committer | Po Lu | 2024-07-24 11:59:53 +0800 |
| commit | 3a76354e092f291037367b65b24c1963fd0fe31f (patch) | |
| tree | e4c470abb7d1ccaf4575f26bbaca06625803afd1 /src | |
| parent | b5543c54bf08c4fa4cae6b7f404a37a2aee60cdf (diff) | |
| download | emacs-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.c | 3 |
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; |